Skip to main content

make_directory

Function make_directory 

Source
pub fn make_directory(config: &Config, raw: &str) -> Result<(), BrowseError>
Expand description

Create a new directory at <install>/shared/<raw>. Idempotent — if the path already exists as a directory, returns Ok without re-creating. Rejects path traversal and refuses to create over an existing file.