A script that picks a random selection of files
pick-files
is a script that randomly selects a specific number of files
from a set of folders and copies these files to a single destination folder.
During repeat runs the previously selected files are excluded from the
selection for a specific time period that can be specified.
Usage Example
pick-files --number 20 \
--destination output \
--suffix .jpg --suffix .avi \
--folder folder1 --folder folder2
Would choose at random 20 files from folder1
and folder2
(including
sub-folders) and copy those files into output
. The output
is created if
it does not exist already. In this example, only files with suffixes .jpg
or .avi
are considered.