First step in making this project platform independent. the next stage will be to switch to a custom file tree with caching.
pub trait LegacyFileSystem { fn read<T: DeserializeOwned>(&self, path: &Path) -> Result<T, FsError>; fn read_bytes(&self, path: &Path) -> Result<Vec<u8>, FsError>; fn write<T: Serialize>(&self, path: &Path, data: T) -> Result<(), FsError>; fn delete(&self, path: &Path) -> Result<(), FsError>; fn mkdir(&self, path: &Path) -> Result<(), FsError>; fn rename(&self, path: &Path, new_path: &Path) -> Result<(), FsError>; fn exists(&self, path: &Path) -> bool; fn config_path(&self) -> PathBuf; }
No dependencies set.
The note is not visible to the blocked user.
First step in making this project platform independent. the next stage will be to switch to a custom file tree with caching.
Todos: