Lines Matching refs:file
65 while (($file = readdir($dir)) !== false) {
66 if ($file[0] == '.' || $file == $titlefile) {
70 $self = $local . '/' . $file;
71 $filepath = $path . '/' . $file;
74 if ($this->fnmatch($pattern, $file) || (is_dir($filepath) && $recursive)) {
75 if (!is_dir($filepath) && !$this->isExtensionAllowed($file)) {
78 if ($this->isFileIgnored($file)) {
83 $filename = $file;
146 * @param string $file
149 protected function isExtensionAllowed($file) argument
152 return preg_match('/(' . $this->ext . ')$/i', $file);
158 * @param string $file
161 protected function isFileIgnored($file) argument
164 if ($this->fnmatch($pattern, $file)) return true;
176 $file = __DIR__ . '/conf/ignore.txt';
177 $ignore = file($file, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);