Expand description
The files of mediaid_file rows in the media directory.
A rowβs file is named by the base64 of its keyβs SHA-256 digest, or under the legacy naming by the base64 of the key itself. One check covers the rename from legacy names, the other the directory once that rename is stamped.
Re-exportsΒ§
use std::collections::HashSet;πuse std::ffi::OsString;πuse std::fmt;πuse std::fs::Metadata;πuse std::fs::read_dir;πuse std::io;πuse std::io::ErrorKind;πuse std::path::Path;πuse std::path::PathBuf;πuse futures::Stream;πuse futures::TryStreamExt;πuse futures::stream::once;πuse tokio::fs::symlink_metadata;πuse tuwunel_core::Err;πuse tuwunel_core::Result;πuse tuwunel_core::err;πuse tuwunel_core::itertools::Itertools;πuse tuwunel_core::utils::BoolExt;πuse tuwunel_core::utils::TryReadyExt;πuse tuwunel_core::utils::stream::TryBroadbandExt;πuse tuwunel_database::KeyBuf;πuse super::Check;πuse super::Report;πuse super::ScanExt;πuse super::tally;πuse crate::Services;πuse crate::migrations::SHA256_MEDIA;πuse crate::migrations::marker_present;π
StructsΒ§
- Entry π
- A rowβs legacy name, and which of its two names the directory lists.
- Legacy
- A
mediaid_filerow whose media is still a file under its legacy name.
EnumsΒ§
- Finding
- A
mediaid_filerow the media directory disagrees with.
StaticsΒ§
FunctionsΒ§
- classify π
- Judges one row as the startup media check does, reading the legacy nameβs kind only where the check would.
- entries π
- entry π
- files π
- Lists the media directory once the sha256 rename is stamped.
- is_link π
- keys π
- legacy
- Streams each
mediaid_filerow whose media is still a file under its legacy name, only while the sha256 rename is unstamped. - listing π
- Lists the media directory, naming each entry by
dirjoined with its name. - scan
- Streams each
mediaid_filerow the media directory disagrees with, only once the sha256 rename is stamped. - unrenamed π
Type AliasesΒ§
- Files π