Lines Matching refs:file
60 foreach ($this->scanHashDir($this->directory) as $file) {
61 if ('' !== $namespace && !str_starts_with($this->getFileKey($file), $namespace)) {
65 $ok = ($this->doUnlink($file) || !file_exists($file)) && $ok;
79 $file = $this->getFile($id);
80 $ok = (!file_exists($file) || $this->doUnlink($file) || !file_exists($file)) && $ok;
86 protected function doUnlink($file) argument
88 return @unlink($file);
91 private function write(string $file, string $data, int $expiresAt = null) argument
115 return rename($this->tmp, $file);
134 private function getFileKey(string $file): string argument
157 foreach (@scandir($dir, \SCANDIR_SORT_NONE) ?: [] as $file) {
158 if ('.' !== $file && '..' !== $file) {
159 yield $dir.\DIRECTORY_SEPARATOR.$file;
169 public static function throwError($type, $message, $file, $line) argument
171 throw new \ErrorException($message, 0, $type, $file, $line);