pub fn sync_directory(path: &Path) -> Result<()>Expand description
What:
Make a directory’s entries durable,
where the platform supports directory handles.
Why:
A new or renamed entry survives a crash only after its directory is synced;
Windows
has no directory handle for this,
as the incumbent’s syncDirectory notes.
In TS you’d write (pseudocode):
async function syncDirectory(path: string): Promise<void>;