Skip to main content

remove_directory

Function remove_directory 

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

Delete the directory at <install>/shared/<raw> recursively. Refuses to remove protected top-level entries (skills/, skill-bundles/, knowledge/) or the shared root itself. Rejects path traversal.