archive.py 文件源码

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

项目:liberator 作者: libscie 项目源码 文件源码
def _copy_permissions(mode, filename):
        """
        If the file in the archive has some permissions (this assumes a file
        won't be writable/executable without being readable), apply those
        permissions to the unarchived file.
        """
        if mode & stat.S_IROTH:
            os.chmod(filename, mode)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号