Adapter/FilesystemAdapter.php
private function doClearFile(&$ok, \SplFileInfo $file, $prefix): void
    {
        $keys = [];

        if ($file->isFile()) {
            $key = $this->getFileKey($file);

            if (null !== $key && ('' === $prefix || 0 === strpos($key, $prefix))) {
                $keys[] = $key;
            }
        }

        $ok = ($file->isDir() || $this->deleteItems($keys) || !file_exists($file)) && $ok;
    }
private function doClearFile(&$ok, \SplFileInfo $file, $prefix): void
    {
        $keys = [];

        if ($file->isFile()) {
            $key = $this->getFileKey($file);

            if (null !== $key && ('' === $prefix || 0 === strpos($key, $prefix))) {
                $keys[] = $key;
            }
        }

        $ok = ($file->isDir() || $this->deleteItems($keys) || !file_exists($file)) && $ok;
    }
private function doClearFile ( & $ ok , \ SplFileInfo $ file , $ prefix ) : void { $ keys = [ ] ; if ( $ file -> isFile ( ) ) { $ key = $ this -> getFileKey ( $ file ) ; if ( null !== $ key && ( '' === $ prefix || 0 === strpos ( $ key , $ prefix ) ) ) { $ keys [ ] = $ key ; } } $ ok = ( $ file -> isDir ( ) || $ this -> deleteItems ( $ keys ) || ! file_exists ( $ file ) ) && $ ok ; }
Action to clear all items in file starting with the prefix.

@param bool         $ok     The delete status
@param \SplFileInfo $file   The spl file info
@param string       $prefix The prefix
Action to clear all items in file starting with the prefix .