We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0576707 commit c2ce7f1Copy full SHA for c2ce7f1
README.md
@@ -8,7 +8,13 @@ This library provides functions to decode and print Unix mode bits /
8
permissions, even on non-Unix platforms.
9
10
On Unix, decoding is supported by `std::os::unix::fs` in the standard library,
11
-but this crate adds a function to print them in the format used by `ls -l`.
+but this crate adds a function to render them in the format used by `ls -l`,
12
+and to understand the file type and permissions.
13
+
14
+ assert_eq!(unix_mode::to_string(0o0040755), "drwxr-xr-x");
15
+ assert_eq!(unix_mode::to_string(0o0100640), "-rw-r-----");
16
17
+ assert_eq!(unix_mode::is_symlink(0o0040755), false);
18
19
For API documentation see <https://docs.rs/unix_mode>.
20
0 commit comments