function Filesystem::remove
Same name in this branch
- 11.1.x vendor/composer/composer/src/Composer/Util/Filesystem.php \Composer\Util\Filesystem::remove()
Removes files or directories.
Throws
IOException When removal fails
4 calls to Filesystem::remove()
- Filesystem::hardlink in vendor/
symfony/ filesystem/ Filesystem.php - Creates a hard link, or several hard links to a file.
- Filesystem::mirror in vendor/
symfony/ filesystem/ Filesystem.php - Mirrors a directory to another.
- Filesystem::rename in vendor/
symfony/ filesystem/ Filesystem.php - Renames a file or a directory.
- Filesystem::symlink in vendor/
symfony/ filesystem/ Filesystem.php - Creates a symbolic link or copy a directory.
File
-
vendor/
symfony/ filesystem/ Filesystem.php, line 145
Class
- Filesystem
- Provides basic utility to manipulate the file system.
Namespace
Symfony\Component\FilesystemCode
public function remove(string|iterable $files) : void {
if ($files instanceof \Traversable) {
$files = iterator_to_array($files, false);
}
elseif (!\is_array($files)) {
$files = [
$files,
];
}
self::doRemove($files, false);
}