filehandler.py 文件源码

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

项目:urnote 作者: urnote 项目源码 文件源码
def copy_to_purge_dir(self, abspath):
        """
        ?abspath???????????purge???,???????
        config.IGNORE_FILES????
        """
        ignore = shutil.ignore_patterns(*config.IGNORE_FILES)
        if os.path.isdir(abspath):
            shutil.copytree(abspath, self.path_helper.purge_path, ignore=ignore)
        else:
            ignores = ignore(None, abspath)
            if not ignores:
                shutil.copy(abspath, self.path_helper.purge_path)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号