File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ Using json keyfile path:
7676 from pydrive2.fs import GDriveFileSystem
7777
7878 fs = GDriveFileSystem(
79+ # replace with ID of a drive or directory and give service account access to it
7980 " root" ,
8081 use_service_account = True ,
8182 client_json_file_path = " /path/to/keyfile.json" ,
@@ -88,6 +89,7 @@ Using json keyfile string:
8889 from pydrive2.fs import GDriveFileSystem
8990
9091 fs = GDriveFileSystem(
92+ # replace with ID of a drive or directory and give service account access to it
9193 " root" ,
9294 use_service_account = True ,
9395 client_json = json_string,
@@ -106,7 +108,8 @@ Using filesystem
106108
107109.. code-block :: python
108110
109- for root, dnames, fnames in fs.walk(" " ):
111+ # replace `root` with ID of a drive or directory and give service account access to it
112+ for root, dnames, fnames in fs.walk(" root" ):
110113 for dname in dnames:
111114 print (f " dir: { root} / { dname} " )
112115
You can’t perform that action at this time.
0 commit comments