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"
|
html2md = "0.2"
|
||||||
regex = "1"
|
regex = "1"
|
||||||
directories-next = "2.0.0"
|
directories-next = "2.0.0"
|
||||||
|
directories = "6.0.0"
|
||||||
|
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
use std::{fs,io};
|
use std::{fs,io};
|
||||||
|
use directories::ProjectDirs;
|
||||||
use directories_next::ProjectDirs;
|
|
||||||
|
|
||||||
pub fn get_data_directory() -> std::path::PathBuf {
|
pub fn get_data_directory() -> std::path::PathBuf {
|
||||||
|
|
||||||
let dirs = ProjectDirs::from("rocks","gabe","RSSCar").expect("Failed to get paths");
|
let dirs = ProjectDirs::from("rocks","gabe","RSSCar").expect("Failed to get paths");
|
||||||
match fs::create_dir(dirs.data_dir()){
|
match fs::create_dir(dirs.data_dir()){
|
||||||
Ok(_) => {}
|
Ok(_) => {}
|
||||||
|
|
Loading…
Reference in a new issue