Skip to content

Exchange names of two files or directories atomically

License

Notifications You must be signed in to change notification settings

AbhyudayaSharma/exchange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published