Skip to content

Commit 10a60fc

Browse files
authored
fix(readme): walk expects absolute path
1 parent 273dfc2 commit 10a60fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,10 @@ compatible `GDriveFileSystem`_.
136136
137137
from pydrive2.fs import GDriveFileSystem
138138
139+
# replace `root` with ID of a drive or directory and give service account access to it
139140
fs = GDriveFileSystem("root", client_id=my_id, client_secret=my_secret)
140141
141-
for root, dnames, fnames in fs.walk(""):
142+
for root, dnames, fnames in fs.walk("root"):
142143
...
143144
144145
.. _`GDriveFileSystem`: https://docs.iterative.ai/PyDrive2/fsspec/

0 commit comments

Comments
 (0)