Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 779 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 779 Bytes

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