Skip to main content

set_executable

Function set_executable 

Source
pub fn set_executable(path: &Path) -> Result<(), Error>
Expand description

Set executable.

§Example

    let error_prefix = format!("Failed set executability of {path:?}");
    if symlink(src, dst)
        .prefix_err(&error_prefix)
        ._ebog()
        .is_some() {
    // success
    }