Skip to main content

read_user_file

Function read_user_file 

Source
pub async fn read_user_file(
    context: &Context<'_>,
    buffer: &mut Vec<u8>,
    file: &str,
) -> Result<User>
Expand description

Reads and parses a user file from the filesystem.

Version 0 records get their /users/<identifier> home in memory; nothing is written back.

ยงErrors

  • Path construction failures
  • File system errors (opening, reading)
  • JSON parsing errors, invalid recorded homes and unsupported versions