pub trait DistributedFileSystem: Send + Sync {
// Required methods
fn open_read(&self, path: &Path) -> Result<Box<dyn Read + Send>>;
fn create_write(&self, path: &Path) -> Result<Box<dyn Write + Send>>;
fn list_dir(&self, path: &Path) -> Result<Vec<PathBuf>>;
fn metadata(&self, path: &Path) -> Result<FileMetadata>;
fn exists(&self, path: &Path) -> bool;
}Expand description
Distributed file system abstraction
Required Methods§
Sourcefn metadata(&self, path: &Path) -> Result<FileMetadata>
fn metadata(&self, path: &Path) -> Result<FileMetadata>
Get file metadata