ohhhchank3 commited on
Commit
502d9ec
1 Parent(s): 56da5e8

Update store_file_dropbox.py

Browse files
Files changed (1) hide show
  1. store_file_dropbox.py +0 -11
store_file_dropbox.py CHANGED
@@ -117,18 +117,7 @@ def search_files_starting_with_j():
117
 
118
 
119
 
120
- def upload_file(local_path, cloud_path):
121
- try:
122
- # Đọc dữ liệu từ file cục bộ
123
- with open(local_path, "rb") as f:
124
- data = f.read()
125
-
126
- # Tải file lên Dropbox
127
- dbx.files_upload(data, cloud_path)
128
 
129
- print(f"Uploaded file '{local_path}' to '{cloud_path}'")
130
- except dropbox.exceptions.ApiError as e:
131
- print(f"Error uploading file '{local_path}': {e}")
132
 
133
 
134
  def download_folder(id):
 
117
 
118
 
119
 
 
 
 
 
 
 
 
 
120
 
 
 
 
121
 
122
 
123
  def download_folder(id):