diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-11-10 02:44:48 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-11-10 02:44:48 -0500 |
commit | 5271c8503199ea6e14f298743b28f2262a7e216a (patch) | |
tree | a623ee230049a0c4fe5e5cedde967dcd79b5d0a0 /src/paths.rs | |
parent | ef7cd5bc677c6aabf5517e74ab64eb84d4784057 (diff) | |
download | lastfm-query-5271c8503199ea6e14f298743b28f2262a7e216a.tar.gz lastfm-query-5271c8503199ea6e14f298743b28f2262a7e216a.zip |
rename paths to util, and add more stuff to it
Diffstat (limited to 'src/paths.rs')
-rw-r--r-- | src/paths.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/paths.rs b/src/paths.rs deleted file mode 100644 index badb783..0000000 --- a/src/paths.rs +++ /dev/null @@ -1,13 +0,0 @@ -pub fn db_path() -> failure::Fallible<std::path::PathBuf> { - Ok(directories::ProjectDirs::from("", "", "lastfm-query") - .ok_or_else(|| failure::err_msg("couldn't determine data directory"))? - .data_dir() - .join("tracks.sqlite")) -} - -pub fn api_key_path() -> failure::Fallible<std::path::PathBuf> { - Ok(directories::ProjectDirs::from("", "", "lastfm-query") - .ok_or_else(|| failure::err_msg("couldn't determine config directory"))? - .config_dir() - .join("lastfm-api-key")) -} |