fsync
Ensure that any writes to the given file are persisted to the storage device.:contentReferenceoaicite:6{index=6} On non-JVM platforms, this is implemented as a no-op (except for checking file existence) since fsync is not universally available.
Parameters
fileToSync
the file or directory to fsync
isDir
true if fileToSync is a directory (in which case we attempt a best-effort no-op)