Rustaceans...Seems a function to say whether you can read or file or write a file would some good functions. Even with unix:fs:PermissionsExt I need to do a little bit of bit math to just figure out if I can read a file or not. #amIlazy
https://doc.rust-lang.org/nightly/std/fs/struct.Metadata.html#method.permissions …, checking if a file is readonly is the only thing you can do across platforms
-
-
`file.metadata().permissions().readonly()`
-
That needs a question mark or unwrap
- 12 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.