fn load_uuid(cache_directory: &PathBuf) -> Result<String, Box<dyn std::error::Error>> {
    let uid_file = cache_directory.join(Path::new("uuid"));
    let uuid = match uid_file.exists() {
        true => fs::read_to_string(uid_file)?,
        false => generate_and_store_uid(uid_file),
    };

    Ok(uuid)
}
// Load the UUID from cache directory if exists
Load the UUID from cache directory if exists
Load the UUID from cache directory if exists
fn load_uuid(cache_directory: &PathBuf) -> Result<String, Box<dyn std::error::Error>> {
    let uid_file = cache_directory.join(Path::new("uuid"));
    let uuid = match uid_file.exists() {
        true => fs::read_to_string(uid_file)?,
        false => generate_and_store_uid(uid_file),
    };
    Ok(uuid)
}
fn load_uuid ( cache_directory : & PathBuf ) -> Result < String , Box < dyn std :: error :: Error > > { let uid_file = cache_directory . join ( Path :: new ( " " ) ) ; let uuid = match uid_file . exists ( ) { true => fs :: read_to_string ( uid_file ) ? , false => generate_and_store_uid ( uid_file ) , } ; Ok ( uuid ) }
Load the UUID from cache directory if exists
Load the UUID from cache directory if exists
cache_directory
&PathBuf