Skip to content

Commit

Permalink
Enable fsspec file caching (#215)
Browse files Browse the repository at this point in the history
* Pass details=False to ls to support filecache/simplecache

* Bump bug version
  • Loading branch information
adrianloy authored Oct 7, 2024
1 parent 4e9d3bd commit a11cd04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "squirrel-core"
version = "0.20.1"
version = "0.20.2"
description = "Squirrel is a Python library that enables ML teams to share, load, and transform data in a collaborative, flexible and efficient way."
authors = ["Merantix Momentum"]
license = "Apache 2.0"
Expand Down
2 changes: 1 addition & 1 deletion squirrel/iterstream/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(
def __iter__(self) -> t.Iterator[str]:
"""Iterator that does ls and yield filepaths under the given url"""
self.fs = get_fs_from_url(self.url, **self.storage_options)
urls = self.fs.ls(self.url) if self.fs.exists(self.url) else []
urls = self.fs.ls(self.url, detail=False) if self.fs.exists(self.url) else []
urls.sort()
if self.nested:
dirs = []
Expand Down

0 comments on commit a11cd04

Please sign in to comment.