Skip to content

the-junty/junty-todir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toDir

Send globs to another paths.

Installation

$ composer require --dev junty/junty-todir

Usage

On 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
});

Nativaly!

This plugin comes nativaly with Junty, so you don't need to install.

// ...
->forStreams($this->toDir('directory_name'))

About

[Plugin] 📁 Send globs to another paths

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages