unisonweb/unison

Built-ins to get and set file permissions

Open

#2.790 geöffnet am 10. Jan. 2022

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Haskell (304 Forks)batch import
feature: new builtinhelp wanted

Repository-Metriken

Stars
 (6.624 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 10T 2h) (5 gemergte PRs in 30 T)

Beschreibung

It is currently not possible to query or modify the permissions of a file or directory from Unison. Support for these functions would need a native implementation.

My use-case: In dhall-unison I'd like to check if the cache directories are readable and writeable. As a "workaround" I always attempt to read/write files and handle errors appropriately

See also this discussion on Slack https://unisonlanguage.slack.com/archives/CLUNF0J5S/p1641645307009800

Contributor Guide