You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from fsspec.core import url_to_fs
ufs, url = url_to_fs("https://example.org/")
f = ufs.open("https://example.org/no-range-requests/data.txt")
f.seek(8192)
f.read(1)
Will raise # ValueError: The HTTP server doesn't appear to support range requests.
I was having trouble with cache options, but it turns out I was sending simplecache:: to the wrong place; this does work, but I don't really want to keep the seekable file around after the file is closed. Trying to be careful to open the file only once.
The text was updated successfully, but these errors were encountered:
enhance those so that the cache only keeps a file or two if I'm worried about disk space, like python TemporaryFile's delete-file-on-close
Edit HTTPStreamFile so that it can fetch a range, if that range is right after whatever we've fetched so far, and use the file-level "all" cache instead of the filesystem wrappers simplecache::
Will raise
# ValueError: The HTTP server doesn't appear to support range requests.
I was having trouble with cache options, but it turns out I was sending
simplecache::
to the wrong place; this does work, but I don't really want to keep the seekable file around after the file is closed. Trying to be careful to open the file only once.The text was updated successfully, but these errors were encountered: