Symfony\Component\Filesystem\Filesystem
Provides basic utility to manipulate the file system.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class Filesystem
{
- // methods
- public void copy()
- public void mkdir()
- public Boolean exists()
- public void touch()
- public void remove()
- public void chmod()
- public void chown()
- public void chgrp()
- public void rename()
- public void symlink()
- public string makePathRelative()
- public void mirror()
- public Boolean isAbsolutePath()
- private Traversable toIterator()
- public void dumpFile()
Methods
private
public
- chgrp() — Change the group of an array of files or directories
- chmod() — Change mode for an array of files or directories.
- chown() — Change the owner of an array of files or directories
- copy() — Copies a file.
- dumpFile() — Atomically dumps content into a file.
- exists() — Checks the existence of files or directories.
- isAbsolutePath() — Returns whether the file path is an absolute path.
- makePathRelative() — Given an existing path, convert it to a path relative to a given starting path
- mirror() — Mirrors a directory to another.
- mkdir() — Creates a directory recursively.
- remove() — Removes files or directories.
- rename() — Renames a file or a directory.
- symlink() — Creates a symbolic link or copy a directory.
- touch() — Sets access and modification time of file.