mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Copying project files directly, rather than copying them in an import-export fashion, can make copying projects many times faster
This commit is contained in:
1 parent
225779bc11
commit
5ffe5fd9b3
2 files changed
+88
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import argparse
|
||||
import shutil
|
||||
|
||||
|
||||
# 复制目录
|
||||
def copy_tree(src, dst):
|
||||
shutil.copytree(src, dst)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
parser = argparse.ArgumentParser(description='for test')
|
||||
parser.add_argument('--src', type=str, help='', default='')
|
||||
parser.add_argument('--dst', type=str, help='', default='')
|
||||
args = parser.parse_args()
|
||||
copy_tree(args.src, args.dst)
|
||||
Reference in new issue
Block a user