mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-17 13:47:49 +00:00
[Update] 添加debug
This commit is contained in:
parent
dd4ef4c383
commit
2e6ba2ffb2
@ -51,6 +51,7 @@ def upload_to_local(session):
|
|||||||
target_path = os.path.join(target_dir, target_filename)
|
target_path = os.path.join(target_dir, target_filename)
|
||||||
if not os.path.isdir(target_dir):
|
if not os.path.isdir(target_dir):
|
||||||
os.makedirs(target_dir)
|
os.makedirs(target_dir)
|
||||||
|
print("Move {} => {}".format(source_path, target_path))
|
||||||
shutil.copy(source_path, target_path)
|
shutil.copy(source_path, target_path)
|
||||||
shutil.copystat(source_path, target_path)
|
shutil.copystat(source_path, target_path)
|
||||||
os.unlink(source_path)
|
os.unlink(source_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user