fn updateFile(source_dir: Dir, source_path: []const u8, dest_dir: Dir, dest_path: []const u8, options: CopyFileOptions) !PrevStatus
[src]
Check the file size, mtime, and mode of source_path
and dest_path
. If they are equal, does nothing. Otherwise, atomically copies source_path
to dest_path
. The destination file gains the mtime, atime, and mode of the source file so that the next call to updateFile
will not need a copy. Returns the previous status of the file before updating. If any of the directories do not exist for dest_path, they are created.
Parameters
source_dir: Dir,
source_path: []const u8,
dest_dir: Dir,
dest_path: []const u8,
options: CopyFileOptions,