Automation program to sort files into desired directories.
- C 94.9%
- Shell 5.1%
| crpath @d1620982c9 | Updated crpath to 1.0.3 | |
| scripts | Specify C standard. | |
| .gitignore | Initial commit | |
| .gitmodules | Added crpath submodule. | |
| main.c | Made fmove safe from TOCTOU error. | |
| move.c | Remove commented out code. | |
| move.h | Created fmove() | |
| README.md | Update README.md | |
tidyfile
Automation program to sort files into desired directories. Being developed on gcc with musl for c99.
TODO
- Make suite of functions for handling directory queries and move operations.
- Make library for parsing a config file containing rules for the program.
- Create simple set of tests.
Structure
The library move.h contains functions relating to the safe movement of files.
Dependencies
- crpath 1.0.3.
Compile
Either run your c compiler directly like so:
gcc main.c move.c -o main crpath/crpath.c -std=c99
Or use the provided build.sh script like so: (Run from within the scripts/ directory.)
./scripts/build.sh $cc
$cc being the c compiler you wish to use.