Skip to main content

get_user_file_path

Function get_user_file_path 

Source
pub fn get_user_file_path(user_name: &str) -> Result<PathOwned>
Expand description

Constructs the file system path for a user’s data file.

Lookups accept any name that is a single, ordinary directory entry, so accounts created before [users::is_valid_user_name] still resolve, while /, ., .., NUL and control characters can never leave the accounts directory.

§Errors

Returns Error::FailedToGetUserFilePath for an unusable name.