-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implements data root saving for Linux (#1160)
- Loading branch information
1 parent
ec3fb53
commit 09a081c
Showing
7 changed files
with
137 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
use std::path::PathBuf; | ||
use std::path::{Path, PathBuf}; | ||
use thiserror::Error; | ||
|
||
pub fn read_data_root() -> Result<Option<PathBuf>, DataRootError> { | ||
todo!() | ||
} | ||
|
||
pub fn write_data_root(path: impl AsRef<Path>) -> Result<(), DataRootError> { | ||
todo!() | ||
} | ||
|
||
/// Represents an error when read or write data root fails. | ||
#[derive(Debug, Error)] | ||
pub enum DataRootError {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
use std::path::PathBuf; | ||
use std::path::{Path, PathBuf}; | ||
use thiserror::Error; | ||
|
||
pub fn read_data_root() -> Result<Option<PathBuf>, DataRootError> { | ||
todo!() | ||
} | ||
|
||
pub fn write_data_root(path: impl AsRef<Path>) -> Result<(), DataRootError> { | ||
todo!() | ||
} | ||
|
||
/// Represents an error when read or write data root fails. | ||
#[derive(Debug, Error)] | ||
pub enum DataRootError {} |
Oops, something went wrong.