Localize.py 文件源码

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

项目:LocalizedMenu 作者: zam1024t 项目源码 文件源码
def backupMenu():
    if not os.path.isdir(dDir):
        return
    if not getSetting('auto_backup', True):
        return
    bDir = os.path.join(mDir, version, 'backup')
    if not os.path.isdir(bDir):
        os.makedirs(bDir)
    for item in os.listdir(dDir):
        filename = os.path.join(dDir, item)
        if os.path.isfile(filename) and item.endswith(mExt[:-5]):
            target = os.path.join(bDir, item + mExt[-5:])
            open(target, 'wb').write(open(filename, 'rb').read())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号