pub fn renamePreserve( old_dir: Dir, old_sub_path: []const u8, new_dir: Dir, new_sub_path: []const u8, io: Io, ) RenamePreserveError!void
Change the name or location of a file or directory.
If new_sub_path already exists, error.PathAlreadyExists will be returned.
new_sub_path
error.PathAlreadyExists
old_dir: Dir
old_sub_path: []const u8
new_dir: Dir
new_sub_path: []const u8
io: Io
1137 1138 1139 1140 1141 1142 1143 1144 1145
pub fn renamePreserve( old_dir: Dir, old_sub_path: []const u8, new_dir: Dir, new_sub_path: []const u8, io: Io, ) RenamePreserveError!void { return io.vtable.dirRenamePreserve(io.userdata, old_dir, old_sub_path, new_dir, new_sub_path); }
Change the name or location of a file or directory.
If
new_sub_pathalready exists,error.PathAlreadyExistswill be returned.