Skip to main content

shorten_path

Function shorten_path 

Source
pub(crate) fn shorten_path(path: &Path) -> Result<(PathBuf, File)>
Expand description

Refer to a socket path through its parent directory, so that it fits into a socket address whatever its length. The directory has to exist and stays open as long as the returned file, the path is only valid until then.