file_copy.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:pyhpecw7 作者: HPENetworking 项目源码 文件源码
def file_already_exists(self):
        """Check to see if there is a remote file with the same
        name and md5 sum.

        Returns:
            ``True`` if exists, ``False`` otherwise.
        """
        if not self.remote_dir_exists:
            return False

        try:
            dst_hash = self._get_remote_md5()
        except NCError:
            return False

        src_hash = self._get_local_md5()
        if src_hash == dst_hash:
            return True

        return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号