* not compiling; just to commit

* working logs commit

* prettier; clippy

* delete logs functions

* Reverted change

* mislabeled doc tag
This commit is contained in:
Wyatt Verchere
2023-05-03 09:02:34 -07:00
committed by GitHub
parent 713a915161
commit edd9f28081
11 changed files with 275 additions and 9 deletions

View File

@@ -116,6 +116,14 @@ impl DirectoryInfo {
self.config_dir.join("profiles")
}
/// Gets the logs dir for a given profile
#[inline]
pub fn profile_logs_dir(&self, profile: uuid::Uuid) -> PathBuf {
self.profiles_dir()
.join(profile.to_string())
.join("modrinth_logs")
}
/// Get the file containing the global database
#[inline]
pub fn database_file(&self) -> PathBuf {