Skip to content

Commit 1332b4b

Browse files
author
mark.liu
committed
修改 python上傳檔案到Google Drive 指定的資料夾,程式碼大公開,詳細解說 程式碼 以及 readme.md
1 parent 077361e commit 1332b4b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
文章名稱:python上傳檔案到Google Drive 指定的資料夾,程式碼大公開,詳細解說
2+
3+
文章連結:https://shareboxnow.com/python-google-drive-2/
4+
5+
程式碼位置:https://github.com/MarkwwLiu/PythonBasicTeaching/tree/master/GoogleDrive/UploadFileSpecifiedFolder

GoogleDrive/UploadFileSpecifiedFolder/quickstart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def update_file(service, update_drive_service_name, local_file_path, update_driv
3030
if update_drive_service_folder_id is None:
3131
file_metadata = {'name': update_drive_service_name}
3232
else:
33-
print(update_drive_service_folder_id)
33+
print("雲端資料夾id: %s" % update_drive_service_folder_id)
3434
file_metadata = {'name': update_drive_service_name,
3535
'parents': update_drive_service_folder_id}
3636

@@ -163,7 +163,7 @@ def main(is_update_file_function=False, update_drive_service_folder_name=None, u
163163

164164
if __name__ == '__main__':
165165

166-
main(is_update_file_function=bool(True), update_drive_service_folder_name = None, update_drive_service_name='aaa.txt', update_file_path=os.getcwd() + '/')
166+
main(is_update_file_function=bool(True), update_drive_service_folder_name=None, update_drive_service_name='aaa.txt', update_file_path=os.getcwd() + '/')
167167

168168

169169

0 commit comments

Comments
 (0)