-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
s3fs kwarg unexpected keyword argument in AioSession
#209
Comments
Please note the difference between storage options for AbstractFileSystems and options for the their S3FileSystem class The UPath constructor gathers all keyword arguments under S3FileSystem._open() method If you want to pass specific options down to the filesystem specific AbstractBufferedFile implementation, you would use the following in your case: import upath
upath.UPath("s3:https://mybucket/myfile.txt").open(cache_type="first") If you want to set this on the Filesystem level for s3fs you can do: import upath
p = upath.UPath("s3:https://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! Cheers, |
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: