pub mod driver;
pub mod resolver;
pub mod types;
pub use driver::{
create_dir_all, exists, metadata, read_dir, read_to_string, read_to_vec, remove_dir_all,
remove_file, resolve_secure_physical_path, to_physical_path, write_all,
};
pub use resolver::{
clear_test_override, clear_test_overrides, get_app_id, is_valid_app_id, set_app_id,
set_test_override,
};
pub use types::{FsError, VfsMetadata, VfsPath, VfsRoot};
pub fn app_data() -> VfsPath {
VfsPath::new(VfsRoot::AppData, "")
}
pub fn cache() -> VfsPath {
VfsPath::new(VfsRoot::Cache, "")
}
pub fn documents() -> VfsPath {
VfsPath::new(VfsRoot::Documents, "")
}
pub fn temp() -> VfsPath {
VfsPath::new(VfsRoot::Temp, "")
}
pub mod prelude {
pub use super::types::{FsError, VfsMetadata, VfsPath, VfsRoot};
pub use super::{
app_data, cache, create_dir_all, documents, exists, metadata, read_dir, read_to_string,
read_to_vec, remove_dir_all, remove_file, temp, write_all,
};
}