Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Utility for moving random groups of files
Python
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
LICENSE
README.md
rmv
rmv_test.py

README.md

rmv

Example commands:

rmv train_dir # moves 50% of files in the current directory to train_dir
rmv -g "*.jpg" test_dir # moves 50% of jpgs in the current directory to test_dir
rmv -p 70 ~/downloads # moves 70% of files in the current directory to ~/downloads

Usage:

usage: rmv [-h] [-p PERCENT] [-g GLOB] [source] dest

Randomly moves files to a directory

positional arguments:
  source
  dest

optional arguments:
  -h, --help            show this help message and exit
  -p PERCENT, --percent PERCENT
                        The percent of the directory to move, default is 50
  -g GLOB, --glob GLOB  filters the list of files to move
Something went wrong with that request. Please try again.