Skip to main content

path_is_writable

Function path_is_writable 

Source
pub fn path_is_writable(path: &Path) -> bool
Expand description

Checks writability without creating files or invoking external commands.

§Parameters

§Returns

Returns true when the condition checked by crate::platform::path_is_writable holds and false otherwise.

§Examples

ⓘ
let _result = pharos_native::platform::path_is_writable(std::path::Path::new("fixture.json"));
  • crate::platform for adjacent helpers that share the same runtime surface.