Skip to main content

default_dir

Function default_dir 

Source
pub fn default_dir(data_dir: &Path, shm: &Path, uid: u32) -> PathBuf
Expand description

Where a worker writes its commands’ connection files when [worker] connection_dir isn’t set (decision 201): in memory, under shm (/dev/shm) when it is a folder, in a folder of the user’s own named after the data directory (so workers of one user sharing an ID, a standalone’s and a worker’s, never sweep each other’s); else the data directory.