move podcasts to within nested podcasts folder (significant breaking change)
This commit is contained in:
12
src/folders.rs
Normal file
12
src/folders.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
use std::path;
|
||||
|
||||
use sanitise_file_name::sanitise;
|
||||
|
||||
pub(crate) const PODCASTS_DIR: &str = "Podcasts";
|
||||
|
||||
pub(crate) fn podcast_folder(
|
||||
root: &path::Path,
|
||||
alias: &str,
|
||||
) -> path::PathBuf {
|
||||
root.join(PODCASTS_DIR).join(sanitise(alias))
|
||||
}
|
||||
Reference in New Issue
Block a user