Lines Matching refs:PathBuf

3 use std::path::PathBuf;
5 pub fn home_dir() -> Option<PathBuf> { dirs_sys::home_dir() } in home_dir()
6 pub fn cache_dir() -> Option<PathBuf> { home_dir().map(|h| h.join("Library/Caches")) } in cache_dir()
7 pub fn config_dir() -> Option<PathBuf> { home_dir().map(|h| h.join("Library/Preferences")) } in config_dir()
8 pub fn data_dir() -> Option<PathBuf> { home_dir().map(|h| h.join("Library/Application Support… in data_dir()
9 pub fn data_local_dir() -> Option<PathBuf> { data_dir() } in data_local_dir()
10 pub fn executable_dir() -> Option<PathBuf> { None } in executable_dir()
11 pub fn runtime_dir() -> Option<PathBuf> { None } in runtime_dir()
12 pub fn audio_dir() -> Option<PathBuf> { home_dir().map(|h| h.join("Music")) } in audio_dir()
13 pub fn desktop_dir() -> Option<PathBuf> { home_dir().map(|h| h.join("Desktop")) } in desktop_dir()
14 pub fn document_dir() -> Option<PathBuf> { home_dir().map(|h| h.join("Documents")) } in document_dir()
15 pub fn download_dir() -> Option<PathBuf> { home_dir().map(|h| h.join("Downloads")) } in download_dir()
16 pub fn font_dir() -> Option<PathBuf> { home_dir().map(|h| h.join("Library/Fonts")) } in font_dir()
17 pub fn picture_dir() -> Option<PathBuf> { home_dir().map(|h| h.join("Pictures")) } in picture_dir()
18 pub fn public_dir() -> Option<PathBuf> { home_dir().map(|h| h.join("Public")) } in public_dir()
19 pub fn template_dir() -> Option<PathBuf> { None } in template_dir()
20 pub fn video_dir() -> Option<PathBuf> { home_dir().map(|h| h.join("Movies")) } in video_dir()