Send globs to another paths.
$ composer require --dev junty/junty-todirOn your juntyfile.php:
require 'vendor/autoload.php';
use Junty\Runner;
use Junty\ToDir\ToDirPlugin;
$junty = new Runner();
$junty->task('catch_txt', function () {
$this->src('./*.txt')
->forStreams(new ToDirPlugin('txt_files')); // Send all txt files to txt_files
});This plugin comes nativaly with Junty, so you don't need to install.
// ...
->forStreams($this->toDir('directory_name'))