ignore amp path

hotfix/远程访问多媒体中心
lmrwork 8 years ago
parent 8000bdc515
commit bafa0dfa9b

@ -138,7 +138,7 @@ class Cache extends CI_Controller
$mydir = dir($dir); $mydir = dir($dir);
while($f = $mydir->read()) while($f = $mydir->read())
{ {
if(is_dir("$dir/$f") && $f!="." && $f!=".." && (strpos($dir, '/cn/')==false)) if(is_dir("$dir/$f") && $f!="." && $f!=".." && (strpos($dir, '/cn/')==false) && (strpos($dir, '/amp/')==false))
{ {
$path[] = "$dir/$f"; $path[] = "$dir/$f";
$this->tree("$dir/$f", $file, $path, $file_time); $this->tree("$dir/$f", $file, $path, $file_time);

Loading…
Cancel
Save