MCPcopy Create free account
hub / github.com/Firstyear/opensuse-proxy-cache / drop

Method drop

arc-disk-cache/src/lib.rs:169–175  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

167
168impl Drop for FileHandle {
169 fn drop(&mut self) {
170 if self.running.load(Ordering::Acquire) {
171 info!("🗑 remove fhandle -> {:?}", self.path);
172 let _ = std::fs::remove_file(&self.meta_path);
173 let _ = std::fs::remove_file(&self.path);
174 }
175 }
176}
177
178impl FileHandle {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected