Skip to content

Commit 273dfc2

Browse files
authored
fix(doc): walk expects absolute path
1 parent ad0d411 commit 273dfc2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/fsspec.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)