Skip to content

Commit 83e122e

Browse files
Update README.md
1 parent 030d8a8 commit 83e122e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import gdrive_pyinteract as gdi
1818
gdi.set_client_config_path("client_secrets.json")
1919

2020
# Authenticate
21-
client = gdi.authenticate_client("creds.txt") # Saves access token credentials. If file does not exist, one-time manual sign-in is done via browser and the file is auto-generated.
21+
client = gdi.authenticate_client("creds.txt") # Saves access token credentials to creds.txt. If file does not exist, one-time manual sign-in is done via browser and the file is auto-generated.
2222

2323
# Get id of file/folder
2424
folder_id = gdi.get_id(client, "<drive_folder_name>/<drive_folder_name>/.../<folder_or_file_name>")
@@ -29,6 +29,9 @@ file_list = gdi.list_files(client, folder_id)
2929
# Upload a file
3030
gdi.upload_file(client, '<drive_folder_name>/<drive_folder_name>/.../<drive_file_name>', "C:/.../<system_directory_name>", "<system_file_name>")
3131

32+
# Upload a folder
33+
gdi.upload_folder(client, '<drive_folder_name>/<drive_folder_name>/.../<drive_folder_name>',rf"C:/.../<system_folder_name>")
34+
3235
# Download a file
3336
gdi.download_file(client, "<drive_folder_name>/<drive_folder_name>/.../<drive_file_name>", "C:/.../<system_directory_name>")
3437

0 commit comments

Comments
 (0)