Skip to main content

Module migrations

Module migrations 

Source

Re-exportsยง

use std::collections::HashSet; ๐Ÿ”’
use std::ffi::OsStr; ๐Ÿ”’
use std::ffi::OsString; ๐Ÿ”’
use std::io; ๐Ÿ”’
use std::path::Path; ๐Ÿ”’
use std::path::PathBuf; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use std::time::Instant; ๐Ÿ”’
use tuwunel_core::Config; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::debug; ๐Ÿ”’
use tuwunel_core::debug; ๐Ÿ”’
use tuwunel_core::debug_info; ๐Ÿ”’
use tuwunel_core::debug_warn; ๐Ÿ”’
use tuwunel_core::error; ๐Ÿ”’
use tuwunel_core::error; ๐Ÿ”’
use tuwunel_core::error::inspect_debug_log; ๐Ÿ”’
use tuwunel_core::info; ๐Ÿ”’
use tuwunel_core::info; ๐Ÿ”’
use tuwunel_core::utils::ReadyExt; ๐Ÿ”’
use tuwunel_core::utils::stream::TryIgnore; ๐Ÿ”’
use tuwunel_core::warn; ๐Ÿ”’
use tuwunel_database::Database; ๐Ÿ”’
use tuwunel_database::Map; ๐Ÿ”’
use crate::Services; ๐Ÿ”’
use crate::integrity::media_files::listing; ๐Ÿ”’

Structsยง

MediaStorage ๐Ÿ”’

Functionsยง

checkup_sha256_media ๐Ÿ”’
Check is run on startup for prior-migrated media directories. This handles:
handle_media_check ๐Ÿ”’
migrate_sha256_media ๐Ÿ”’
Migrates a media directory from legacy base64 file names to sha2 file names.
symlink_file ๐Ÿ”’
Links link to the file at target.