Skip to content

chromebrew/crew-mvdir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

crew-mvdir

A command line tool for moving all files under one directory to another, override conflict files in the destination directory (merge two directories)

Equivalent of rsync -ahHAXW --remove-source-files dir1/ dir2/

crew-mvdir use rename() syscall to move files (instead of copying-deleting), that's why it is faster than rsync

Usage

./crew-mvdir [-v] [-n] [src] [dst]

  -v: enable verbose mode
  -n: do not overwrite an existing file (no clobber)

Compile

cc ./crew-mvdir.c -O2 -o crew-mvdir

License

Copyright (C) 2013-2023 Chromebrew Authors

This project including all of its source files is released under the terms of GNU General Public License (version 3 or later).

About

A faster alternative compared with `rsync --remove-source-files`

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages