summaryrefslogtreecommitdiffstats
path: root/src/paths.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-11-10 02:44:48 -0500
committerJesse Luehrs <doy@tozt.net>2018-11-10 02:44:48 -0500
commit5271c8503199ea6e14f298743b28f2262a7e216a (patch)
treea623ee230049a0c4fe5e5cedde967dcd79b5d0a0 /src/paths.rs
parentef7cd5bc677c6aabf5517e74ab64eb84d4784057 (diff)
downloadlastfm-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.rs13
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"))
-}