/exchange

Exchange names of two files or directories atomically

Primary LanguageCMIT LicenseMIT

Exchange file or directory names atomically

build

Wrapper over the Linux syscall renameat2 with the RENAME_EXCHANGE flag set. For more information, read man renameat2.

Installing

This program only works on Linux. To compile:

make

To install to /usr/local/bin:

make install

Usage

exchange: atomically exchange names and contents of two files or directories
Usage: exchange [OPTIONS] PATH1 PATH2

Options:
        -h, --help     show help text and exit
        -v, --verbose  produces verbose output