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
If you want to set this on the Filesystem level for s3fs you can do:
importupathp=upath.UPath("s3://mybucket/myfile.txt", default_cache_type="first")
...
p.open() # will use the default_cache_type
Let me know if that helps! It would be wonderful, if you could tell me how I could improve the text in the README to make this more intuitive. PRs are super welcome too!
Thank you very much for explaining in detail. That of course fixed it!
I don't think it was a problem with the README in this case, but the wording for the open() method (which I assumed came from pathlib):
Because it says "as the built-in does", I never would have thought to pass it config for the fsspec-related operations.
One of the reasons I use upath is so I don't need to set-up anything manually, it just handles whatever I throw at it! Now I'm trying to use different configurations I'll refer to the documentation more and let you know if any parts aren't clear.
Might be related to #204
I'm trying to use the
cache_type
kwarg for s3 [source], but this causes issues down the line when the file is accessed:upath: 0.2.2
python: 3.11.5
The text was updated successfully, but these errors were encountered: