pub mod folder_art;
mod id3v2_pictures;
pub mod lane;
pub mod metadata;
pub mod playlist_files;
pub mod scanner;
pub mod spelling;
pub mod watch;
pub fn known_missing(path: &std::path::Path) -> bool {
if !matches!(path.try_exists(), Ok(false)) {
return false;
}
for ancestor in path.ancestors() {
match std::fs::symlink_metadata(ancestor) {
Ok(_) if ancestor == path => return false,
Ok(meta) => {
return !meta.file_type().is_symlink() || matches!(ancestor.try_exists(), Ok(true));
}
Err(e) if e.kind() == std::io::ErrorKind::NotFound => {}
Err(_) => return false,
}
}
false
}