/file-consolidator

Consolidate files in subfolders of path to path root

Primary LanguagePython

file-consolidator 0.3.0

GitHub Super-Linter Tests

Consolidate files from sub folders of --path directly to --path

Files moved will be given a numeric prefix according to their source folder to preserve sort order.

Usage

Trial mode:

fcon --path test/three_files --trial

Move the files:

fcon --path test/three_files

Careful !!! This has the potential to mess up your file system very quickly and drastically!

Do not rename files, skip conflicts:

fcon --path test/three_files --no-rename

Version

fcon --version

Verbose output

fcon --verbose

Delayed output - show STDOUT at end rather than immediate

fcon --delayed

Debian / Ubuntu installation

Clone project

mkdir $HOME/git
cd $HOME/git
git clone https://github.com/Qarj/file-consolidator

Create symbolic link and activate

cd $HOME/git/file-consolidator
chmod +x fcon.py
sudo ln -sf $HOME/git/file-consolidator/fcon.py /usr/local/bin/fcon
fcon --version

Run the unit tests

chmod +x test_fcon.py
python3 test_fcon.py