MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / deleted_files

Method deleted_files

atomic-repository/src/repository/status.rs:1247–1253  ·  view source on GitHub ↗

Get only deleted files.

(
        &self,
        working_copy: WorkingCopyId,
    )

Source from the content-addressed store, hash-verified

1245
1246 /// Get only deleted files.
1247 pub fn deleted_files(
1248 &self,
1249 working_copy: WorkingCopyId,
1250 ) -> Result<Vec<PathBuf>, RepositoryError> {
1251 let status = self.status(working_copy, StatusOptions::default())?;
1252 Ok(status.deleted().map(|e| e.path().to_path_buf()).collect())
1253 }
1254}
1255
1256/// Check whether an explicit delete still has surviving content spans.

Callers 4

require_dependencyFunction · 0.45
write_recorded_in_txnFunction · 0.45
record_with_lifecycleMethod · 0.45

Calls 4

statusMethod · 0.45
collectMethod · 0.45
deletedMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected