Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Filesystem.php

function Filesystem::remove

Same name in this branch
  1. 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\Filesystem

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal