equal
deleted
inserted
replaced
110 } |
110 } |
111 |
111 |
112 Ok(false) |
112 Ok(false) |
113 } |
113 } |
114 |
114 |
115 /// This function is a rust rewrite of `checkexec` function from `posix.py` |
115 /// This function is a Rust rewrite of the `checkexec` function from |
116 /// Returns true if the filesystem supports execute permissions. |
116 /// `posix.py`. |
|
117 /// |
|
118 /// Returns `true` if the filesystem supports execute permissions. |
117 pub fn check_exec(path: impl AsRef<Path>) -> bool { |
119 pub fn check_exec(path: impl AsRef<Path>) -> bool { |
118 check_exec_impl(path).unwrap_or(false) |
120 check_exec_impl(path).unwrap_or(false) |
119 } |
121 } |