rust/hg-core/src/checkexec.rs
changeset 50377 e2c8b30ab4e7
parent 50376 331a3cbe1c9e
equal deleted inserted replaced
50376:331a3cbe1c9e 50377:e2c8b30ab4e7
   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 }