Skip to main content

ensure_socket_dir

Function ensure_socket_dir 

Source
pub fn ensure_socket_dir(socket_path: &Path) -> Result<()>
Expand description

Creates the socket’s parent directory mode 0700, tightening it if it already exists with broader permissions. Fails rather than binding when it belongs to another user, is a symbolic link, or is something other than a directory.