Code cleanup
This commit is contained in:
1 parent
1ad991667b
commit
f66bf69ef5
32 files changed
+234
-899
No files matched your search
@@ -28,14 +28,6 @@ pub fn db_meta_path() -> PathBuf {
|
||||
app_data_dir().join("data.meta")
|
||||
}
|
||||
|
||||
pub fn history_dir() -> Result<PathBuf, NotificationData> {
|
||||
let directory = app_data_dir().join("history");
|
||||
if !directory.exists() {
|
||||
fs::create_dir_all(directory.clone()).map_err(|_| PermissionDenied)?;
|
||||
}
|
||||
Ok(directory)
|
||||
}
|
||||
|
||||
pub fn voice_dir() -> Result<PathBuf, NotificationData> {
|
||||
let directory = app_data_dir().join("voice");
|
||||
if !directory.exists() {
|
||||
|
||||
Reference in new issue
Block a user