-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Do not check for directory when looking for cache files #2877
Comments
BTW, this is a bit more complicated.
|
@skshetry, I was thinking about leveraging S3's |
@skshetry It looks like |
Ping @skshetry |
@skshetry I'm lowering priority on this one for now. |
Closing as stale. |
Recent refactoring in #2873 and #2853 implemented
isdir()
,isfile()
andexists()
.exists()
checks if the given path exists usingisdir
as well asisfile
.isfile
simply checks for existence of the blob (in case of s3 and gs), whereasisdir
checks if any files with the prefix exists..cache_exists()
uses.exists()
, but does not care about directory paths. So, to reduce number of._list_paths()
remote calls, it's better to refactor.cache_exists()
to useisfile
.As @Suor notes here #2873 (comment),
isfile
might not have been implemented in all remotes, or might be slower in some remotes.Further infomation: #2873 (comment)
The text was updated successfully, but these errors were encountered: