(&mut self)
| 62 | } |
| 63 | |
| 64 | pub fn release(&mut self) { |
| 65 | if let Some(file) = self.file.take() { |
| 66 | FileExt::unlock(&file).unwrap_or_default(); |
| 67 | fs::remove_file(&self.path).unwrap_or_default(); |
| 68 | } |
| 69 | set_lock_path(None); |
| 70 | } |
| 71 | |
| 72 | pub fn exists(&mut self) -> bool { |
| 73 | self.path.exists() |