Actions
Feature #13696
openAdd exchange and noreplace options to File.rename
Feature #13696:
Add exchange and noreplace options to File.rename
Description
renameat2(2) introduced in linux kernel 3.15 takes following flags.
RENAME_EXCHANGE: Atomically exchange oldpath and newpath.
RENAME_NOREPLACE: Don't overwrite newpath of the rename. Return an error if newpath already exists.
This change makes File.rename take these flags as keyword arguments.
Example:
Files
Actions