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

Function sync_directory

atomic-repository/src/repository/operation.rs:5388–5398  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

5386}
5387
5388fn sync_directory(path: &Path) -> Result<(), RepositoryError> {
5389 #[cfg(unix)]
5390 {
5391 File::open(path)?.sync_all()?;
5392 }
5393 #[cfg(not(unix))]
5394 {
5395 let _ = path;
5396 }
5397 Ok(())
5398}
5399
5400#[cfg(test)]
5401mod projected_capability_lease_tests {

Callers 10

copy_entryFunction · 0.85
write_atomic_regularFunction · 0.85
write_atomic_symlinkFunction · 0.85
write_atomic_gitlinkFunction · 0.85
replace_directoryFunction · 0.85
replace_symlinkFunction · 0.85

Calls 1

openFunction · 0.85

Tested by

no test coverage detected