Removal API

This commit is contained in:
Lucien Greathouse
2020-02-19 09:39:49 -08:00
parent 89b5d9294c
commit c7510e12c4
3 changed files with 28 additions and 1 deletions

View File

@@ -35,6 +35,20 @@ impl VfsBackend for NoopBackend {
))
}
fn remove_file(&mut self, _path: &Path) -> io::Result<()> {
Err(io::Error::new(
io::ErrorKind::Other,
"NoopBackend doesn't do anything",
))
}
fn remove_dir_all(&mut self, _path: &Path) -> io::Result<()> {
Err(io::Error::new(
io::ErrorKind::Other,
"NoopBackend doesn't do anything",
))
}
fn metadata(&mut self, _path: &Path) -> io::Result<Metadata> {
Err(io::Error::new(
io::ErrorKind::Other,