std.fs.sync_dir

std.fs

sync_dir(path) -> ok, err

Make the entries of a directory last

Opens the directory path and syncs it, as sync does a file. A file made, renamed or removed in it then keeps its name past a power loss. Answers true, or nil and the errno text: "Not a directory" for any other kind of file.