usestd::io;usestd::path::Path;/// Minimal file system access used by the odx library crates.
pubtraitFileSystem: Send + Sync {/// Read the whole file at `path`.
////// # Errors
////// Returns an error when the file does not exist or cannot be read.
fnread(&self, path:&Path)->io::Result<Vec<u8>>;/// Create or replace the file at `path` with `contents`.
////// # Errors
////// Returns an error when the file cannot be written.
fnwrite(&self, path:&Path, contents:&[u8])->io::Result<()>;/// Whether a file or directory exists at `path`.
fnexists(&self, path:&Path)->bool;}