-
Notifications
You must be signed in to change notification settings - Fork 274
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 doesn't check again if file exists #851
Comments
This is expected and a necessary optimisation, since listing lookups on s3 are relatively expensive. You can always use invalidate_cache or one of the refresh=True arguments, or don't use the "dircache" at all. |
Arguments controlling the directories cache:
|
Thank you @martindurant ! |
Open needs file information (size, etag, etc), so it also uses the cache. Not sure, but cat/get probably will work fine. |
In this code snippet, I check if s3 path exists, then create it by subprocess of aws cli, and then check it again.
The results are:
And if I try to open the "dst" path, it fails on "FileNotFoundError".
The text was updated successfully, but these errors were encountered: