haskell / haskell/directory

File metadata API with symlink-awareness

Open
#143 0 comments 0 reactions 0 assignees View on GitHub
type: (3) feature request
Dominant language
Haskell
Stars
65
Forks
52
PR merge metrics
No merged PRs in 30d

Description

There is a need for a more general file [`Metadata`](https://doc.rust-lang.org/std/fs/struct.Metadata.html) 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)](https://man7.org/linux/man-pages/man2/lstat.2.html)), 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.