Download the PHP package task/filesystem without Composer
On this page you can find all versions of the php package task/filesystem. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package filesystem
task/filesystem
Example
Installation
Add to composer.json
:
Usage
Task\Plugin\FilesystemPlugin
extends Symfony's Filesystem
component object, overring some methods and providing some new ones. Many of these methods return streams which can be piped to other plugins.
open
open($filename, $mode = 'r+')
Returns Task\Plugin\Filesystem\File
, opened with the specified mode.
touch
FilesystemPlugin::touch($filename, $time = null, $atime = null)
See Symfony's Filesystem::touch
documentation for argument description. Returns Task\Plugin\Filesystem\File
, opened with r+
.
ls
ls($dir)
Returns Task\Plugin\Filesystem\FilesystemIterator
.
copy
copy($source, $target, $override = false)
Supports multiple operations, e.g.
Given:
File to file:
File to directory:
Link to link:
Directory to directory:
mirror
mirror($originDir, $targetDir, Traversable $iterator = null, $options = [])
Mirror a directory, optionally providing a Traversable
instance to select or exclude files. Symfony's Finder
component is really good for this:
All versions of filesystem with dependencies
PHP Build Version
Package Version
The package task/filesystem contains the following files
Loading the files please wait ....