unisonweb/unison

Built-ins to get and set file permissions

Open

#2790 aperta il 10 gen 2022

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Haskell (304 fork)batch import
feature: new builtinhelp wanted

Metriche repository

Star
 (6624 star)
Metriche merge PR
 (Merge medio 10g 2h) (5 PR mergiate in 30 g)

Descrizione

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

Guida contributor