//! Bucket - Rorolala Storage Unit use crate::{ DirPtrData, DirSearchPattern, bucket::constants::ROLA_BUCKET_CONFIG_FILE, dir_search_prev, }; pub mod constants { /// The name of the bucket config file pub const ROLA_BUCKET_CONFIG_FILE: &str = "rorolala.toml"; } pub struct Bucket; impl DirPtrData for Bucket { fn fix(raw_path: std::path::PathBuf) -> Option { dir_search_prev(raw_path, DirSearchPattern::File(ROLA_BUCKET_CONFIG_FILE)) } }