コード例 #1
0
 def upload_new_file(self, local_file_path):
     file_name = basename(local_file_path)
     copy_file(local_file_path, join(self.upload_dir, file_name))
     return file_name
コード例 #2
0
 def download_file(self, file_id, path_to_download):
     copy_file(join(self.upload_dir, file_id), path_to_download)