Lines Matching refs:file
407 foreach($files as $file) {
408 if( $file == '.' || $file == '..' ) continue;
409 if( is_dir($pathToSearch.'/'.$file) ) {
410 $this->_pm_disable_cache($pathToSearch.'/'.$file);
413 if( preg_match('#\.txt$#', $file) ) {
414 touch($pathToSearch.'/'.$file, time()+1);
848 while(($file = readdir($dh)) !== false) {
850 if(preg_match('/^\./',$file)) continue;
851 if(is_file($old_path.$file) and preg_match($regex,$file)) {
853 … io_rename($old_path.$file,$new_path.str_replace($opts['name'], $opts['newname'], $file));
883 while(($file = readdir($dh)) !== false) {
885 if(preg_match('/^\./',$file)) continue;
886 if(is_dir($base.'/'.$dir.'/'.$file)) {
887 $dirs[] = $dir.'/'.$file;
890 $files[] = $dir.'/'.$file;
903 foreach($files as $file) {
904 $this->$func($data, $base, $file, 'f', $lvl, $opts);
917 function _pm_search_backlinks(&$data, $base, $file, $type, $lvl, $opts) { argument
921 if(!preg_match('#\.txt$#', $file)) return true;
923 $text = io_readfile($base.'/'.$file);
930 $cid = pathID($file);