Skip to content

Randomly selects files and copies them to a destination, in a way that's less likely to pick previous files.

License

Notifications You must be signed in to change notification settings

Vinesma/rdm-file-selector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rdm-file-selector

Randomly selects files and copies them to a destination, in a way that's less likely to pick previous files.

How it works

Scans the directory passed into it and assigns a maximum score to each file inside. If that file is randomly picked the score is dropped to 0, which makes the file way less likely to be picked for a long time, as the algorithm heavily favors files with a higher score.

The script saves everything to a cache file, and remembers each directory as it is called in. It can recognize file changes and removals and updates accordingly.

How to use

Pass the --help flag to the script to learn the options available.

TODO

Handle directories inside directories better

More options to use

About

Randomly selects files and copies them to a destination, in a way that's less likely to pick previous files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages