clippable/api/src/common.rs
shockrah e049512c03 * Sanity refactor to clean up common warnings
! ALso using the new common module
2021-10-12 21:09:20 -07:00

16 lines
355 B
Rust

use std::env;
pub fn get_clips_dir() -> String {
return match env::var("CLIPS_DIR") {
Ok(val) => val,
Err(_) => String::from("/media/clips/".to_string())
}
}
pub fn thumbs_dir() -> String {
return match env::var("THUMBS_DIR") {
Ok(val) => val,
Err(_) => String::from("/media/thumbnails/".to_string())
}
}