Welcome to filechooser’s documentation!

Get it from the Snap Store


Build and test Go code Build and Test snap package Build and Test Debian package


Documentation Status

Introduction

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.

For more details on all supported options, see the Supported Options page or run the command with –help.

Installation

There are several options to install this script

Get the snap

snap install pick-files

Build it from source

make

Which requires >= go-1.20 and make.

Code Development

The code is hosted on GitHub at <https://github.com/nicolasbock/filechooser>. If you are interested in contributing in any way, please have a look at the repository.