Skip to main content

new_scratch_path

Function new_scratch_path 

Source
pub fn new_scratch_path(workspace_root: &Path) -> Option<PathBuf>
Expand description

A fresh, unique scratch-file path under the workspace, creating the directory if needed and pruning stale files first so the dir does not grow without bound. Returns None on any IO error (offload is best-effort).