def scp_from_remote(*files):
cur_dir = os.getcwd()
for file in files:
total_file_path = file.rsplit('/', 1)
if len(total_file_path) > 1:
file_path, file_name = total_file_path[0], total_file_path[1]
else:
file_path, file_name = '', total_file_path[0]
get(os.path.join(base_dir, file), os.path.join(cur_dir, file_path))
#[ get(os.path.join(base_dir, file), file) for file in files ]
评论列表
文章目录