Skip to content

Conversation

@rlamy
Copy link
Contributor

@rlamy rlamy commented Jan 20, 2023

fs.info() now only queries the properties of its argument, instead of potentially doing a full listing of the parent directory, which should improve its performance in many cases.

Fixes #377 and #380.

Note: this PR contains refactorings of related methods that I ended up not modifying otherwise, I could split them off if that makes reviewing easier.

rlamy added 7 commits January 18, 2023 14:08
When the container's info cannot be obtained from cache, info() now calls
get_container_properties() to return all the info available.

Fixes fsspec#377.
_info() now only queries the properties of its argument, instead of
potentially doing a full listing of the parent directory.

Note: due to apparent inconsistencies in Azure, info["deleted"] may now
be either False or None for the same path, depending on whether the info dict
comes from .info() or .ls(..., detail=True).

Also fixes .exists() mishandling paths like "non-existent-container/key".

Fixes fsspec#380.
@hayesgb
Copy link
Collaborator

hayesgb commented Jan 20, 2023

This is nice @rlamy . Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fs.info("container") result depends on dircache status

2 participants