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

Function sync_directory

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

Source from the content-addressed store, hash-verified

5390}
5391
5392fn sync_directory(path: &Path) -> Result<(), RepositoryError> {
5393 #[cfg(unix)]
5394 {
5395 File::open(path)?.sync_all()?;
5396 }
5397 #[cfg(not(unix))]
5398 {
5399 let _ = path;
5400 }
5401 Ok(())
5402}
5403
5404#[cfg(test)]
5405mod 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.50

Tested by

no test coverage detected