MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / remove_file

Method remove_file

src/pglite/sync_host_fs.rs:140–146  ·  view source on GitHub ↗
(&self, path: &Path)

Source from the content-addressed store, hash-verified

138 }
139
140 fn remove_file(&self, path: &Path) -> virtual_fs::Result<()> {
141 let path = self.prepare_path(path)?;
142 if path.parent().is_none() {
143 return Err(FsError::BaseNotDirectory);
144 }
145 fs::remove_file(path).map_err(FsError::from)
146 }
147
148 fn new_open_options(&self) -> OpenOptions<'_> {
149 OpenOptions::new(self)

Callers

nothing calls this directly

Calls 1

prepare_pathMethod · 0.80

Tested by

no test coverage detected