replace directories next with directories
This commit is contained in:
parent
86303939de
commit
ed04652629
2 changed files with 3 additions and 2 deletions
|
@ -13,6 +13,7 @@ rusqlite = {version=">=0.34",features=['bundled']}
|
|||
html2md = "0.2"
|
||||
regex = "1"
|
||||
directories-next = "2.0.0"
|
||||
directories = "6.0.0"
|
||||
|
||||
[profile.dev]
|
||||
opt-level = 3
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
use std::{fs,io};
|
||||
|
||||
use directories_next::ProjectDirs;
|
||||
use directories::ProjectDirs;
|
||||
|
||||
pub fn get_data_directory() -> std::path::PathBuf {
|
||||
|
||||
let dirs = ProjectDirs::from("rocks","gabe","RSSCar").expect("Failed to get paths");
|
||||
match fs::create_dir(dirs.data_dir()){
|
||||
Ok(_) => {}
|
||||
|
|
Loading…
Reference in a new issue