AbhyudayaSharma / exchange

Exchange names of two files or directories atomically

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Exchange names of two files or directories atomically

License:MIT License


Languages

Language:C 91.9%Language:Makefile 8.1%