Function make_executable

Source
pub fn make_executable<P>(path: P) -> bool
where P: Into<PathBuf> + Clone,
Expand description

Makes the given file executable.

§Platform support

Platforms that support this function are:

  • Unix
  • WASI
  • Redox

§Parameters

  • path - A PathBuf containing the path to the file to be made executable.

§Return

A boolean indicating whether the file is executable after calling this function.