Skip to content
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

File metadata API with symlink-awareness #143

Open
Rufflewind opened this issue Sep 8, 2022 · 0 comments
Open

File metadata API with symlink-awareness #143

Rufflewind opened this issue Sep 8, 2022 · 0 comments
Labels
type: a-feature-request This is a request for a new feature.

Comments

@Rufflewind
Copy link
Member

Rufflewind commented Sep 8, 2022

There is a need for a more general file Metadata API with better awareness of symbolic links:

  • Lots of operations today traverse symbolic links, which is not always what users want.
  • Users may be interested in collecting a snapshot of all the metadata at once (akin to stat(2)), which is more efficient than doing it multiple times and avoids non-atomicity.

There is already a sketch of this API as an internal data type: https://github.com/haskell/directory/blob/master/System/Directory/Internal/Posix.hsc#L150

What needs to be done next is to stabilize this into a usable public API.

@Rufflewind Rufflewind added the type: a-feature-request This is a request for a new feature. label Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: a-feature-request This is a request for a new feature.
Projects
None yet
Development

No branches or pull requests

1 participant