Lines Matching refs:file
65 while (($file = readdir($dir)) !== false) {
66 if ($file[0] == '.' || $file == $titlefile) {
71 $self = ($local === '') ? $file : rtrim($local, '/') . '/' . $file;
72 $filepath = rtrim($path, '/') . '/' . $file;
75 if ($this->fnmatch($pattern, $file) || (is_dir($filepath) && $recursive)) {
76 if (!is_dir($filepath) && !$this->isExtensionAllowed($file)) {
79 if ($this->isFileIgnored($file)) {
84 $filename = $file;
147 * @param string $file
150 protected function isExtensionAllowed($file) argument
153 return preg_match('/(' . $this->ext . ')$/i', $file);
159 * @param string $file
162 protected function isFileIgnored($file) argument
165 if ($this->fnmatch($pattern, $file)) return true;
177 $file = __DIR__ . '/conf/ignore.txt';
178 $ignore = file($file, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);