class Filesystem extends Filesystem
Filesystem.
Added for forwards compatibility with Symfony2.1
Methods
|
copy(string $originFile, string $targetFile, array $override = false)
Copies a file. |
from Filesystem | |
| Boolean |
mkdir(string|array|Traversable $dirs, int $mode = 511)
Creates a directory recursively. |
from Filesystem |
|
touch(string|array|Traversable $files)
Creates empty files. |
from Filesystem | |
|
remove(string|array|Traversable $files)
Removes files or directories. |
from Filesystem | |
|
chmod(string|array|Traversable $files, integer $mode, integer $umask)
Change mode for an array of files or directories. |
from Filesystem | |
|
rename(string $origin, string $target)
Renames a file. |
from Filesystem | |
|
symlink(string $originDir, string $targetDir, Boolean $copyOnWindows = false)
Creates a symbolic link or copy a directory. |
from Filesystem | |
|
mirror(string $originDir, string $targetDir, Traversable $iterator = null, array $options = array())
Mirrors a directory to another. |
from Filesystem | |
| Boolean |
isAbsolutePath(string $file)
Returns whether the file path is an absolute path. |
from Filesystem |
Details
in Filesystem at line 32
public
copy(string $originFile, string $targetFile, array $override = false)
Copies a file.
This method only copies the file if the origin file is newer than the target file.
By default, if the target already exists, it is not overridden.
in Filesystem at line 55
public Boolean
mkdir(string|array|Traversable $dirs, int $mode = 511)
Creates a directory recursively.
in Filesystem at line 74
public
touch(string|array|Traversable $files)
Creates empty files.
in Filesystem at line 86
public
remove(string|array|Traversable $files)
Removes files or directories.
in Filesystem at line 112
public
chmod(string|array|Traversable $files, integer $mode, integer $umask)
Change mode for an array of files or directories.
in Filesystem at line 132
public
rename(string $origin, string $target)
Renames a file.
in Filesystem at line 149
public
symlink(string $originDir, string $targetDir, Boolean $copyOnWindows = false)
Creates a symbolic link or copy a directory.
in Filesystem at line 184
public
mirror(string $originDir, string $targetDir, Traversable $iterator = null, array $options = array())
Mirrors a directory to another.
in Filesystem at line 226
public Boolean
isAbsolutePath(string $file)
Returns whether the file path is an absolute path.