controller_archive.py 文件源码

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

项目:ATLeS 作者: liffiton 项目源码 文件源码
def _relative_move(srcroot, srcrel, destroot):
    ''' Move a file relative to a given root to a given destination.

    E.g.  relative_move('foo/', 'bar/baz', 'bob/') will move
    foo/bar/baz into bob/bar/baz, creating bob/bar if needed.
    '''
    srcfile = srcroot / srcrel
    destfile = destroot / srcrel
    utils.mkdir(destfile.parent)  # make sure directory exists
    shutil.move(str(srcfile), str(destfile))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号