Skip to content

Commit 6e2a235

Browse files
Fix archive fs test (#5614)
* fix archive fs test * fix docs * Update tests/test_filesystem.py Co-authored-by: Albert Villanova del Moral <[email protected]> --------- Co-authored-by: Albert Villanova del Moral <[email protected]>
1 parent 824860c commit 6e2a235

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/source/filesystems.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ Remember to define your credentials in your [FileSystem instance](#set-up-your-c
191191
List files from a cloud storage with your FileSystem instance `fs`, using `fs.ls`:
192192

193193
```py
194-
>>> fs.ls("my-private-datasets/imdb/train")
194+
>>> fs.ls("my-private-datasets/imdb/train", detail=False)
195195
["dataset_info.json.json","dataset.arrow","state.json"]
196196
```
197197

tests/test_filesystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_compression_filesystems(compression_fs_class, gz_file, bz2_file, lz4_fi
4545
assert isinstance(fs, compression_fs_class)
4646
expected_filename = os.path.basename(input_path)
4747
expected_filename = expected_filename[: expected_filename.rindex(".")]
48-
assert fs.ls("/") == [expected_filename]
48+
assert fs.glob("*") == [expected_filename]
4949
with fs.open(expected_filename, "r", encoding="utf-8") as f, open(text_file, encoding="utf-8") as expected_file:
5050
assert f.read() == expected_file.read()
5151

0 commit comments

Comments
 (0)