Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chromebrew/crew-mvdir
A faster alternative compared with `rsync --remove-source-files`
https://github.com/chromebrew/crew-mvdir
Last synced: 3 days ago
JSON representation
A faster alternative compared with `rsync --remove-source-files`
- Host: GitHub
- URL: https://github.com/chromebrew/crew-mvdir
- Owner: chromebrew
- License: gpl-3.0
- Created: 2023-01-01T16:03:49.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-26T10:47:50.000Z (4 months ago)
- Last Synced: 2024-11-06T00:41:37.087Z (about 2 months ago)
- Language: C
- Size: 39.1 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```shell
cc ./crew-mvdir.c -O2 -o crew-mvdir
```## License
Copyright (C) 2013-2024 Chromebrew AuthorsThis project including all of its source files is released under the terms of [GNU General Public License (version 3 or later)](http://www.gnu.org/licenses/gpl.txt).