Skip to content
Snippets Groups Projects
Commit 64f50cdb authored by andi's avatar andi
Browse files

make search skip .lock files

darcs-hash:20050519161353-9977f-3ea310a2dd433c8bc3ff634bde962d6a9adce549.gz
parent 5aa9b7cc
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,9 @@ function search(&$data,$base,$func,$opts,$dir='',$lvl=1){
if(is_dir($base.'/'.$dir.'/'.$file)){
$dirs[] = $dir.'/'.$file;
continue;
}elseif(substr($file,-5) == '.lock'){
//skip lockfiles
continue;
}
$files[] = $dir.'/'.$file;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment