Move config dir and session file (#156)

* Move config dir and session file

* Update login.rs
This commit is contained in:
LetMeByte 2023-02-22 22:45:00 +01:00 committed by GitHub
parent c315f87f33
commit 90212c4ec0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,5 +35,5 @@ impl Execute for Login {
} }
pub fn login_file_path() -> Option<PathBuf> { pub fn login_file_path() -> Option<PathBuf> {
dirs::config_dir().map(|config_dir| config_dir.join(".crunchy-cli-core")) dirs::config_dir().map(|config_dir| config_dir.join("crunchy-cli").join("session"))
} }