Function brane_shr::fs::set_executable
source · pub fn set_executable(path: impl AsRef<Path>) -> Result<(), Error>
Expand description
Updates the permissions of the given file to become executable.
§Arguments
path
: The path of the file to change the permissions of.
§Errors
This function errors if we failed to update the permissions - probably either because the file did not exist, or we do not have the required permisisons ourselves.