comparison index.php @ 51:29543401ef18

Ignore nonexisting files.
author nanaya <me@myconan.net>
date Mon, 24 Aug 2015 21:20:27 +0900
parents 5a4c9efd99fc
children f48a4fbb9cf9
comparison
equal deleted inserted replaced
50:5a4c9efd99fc 51:29543401ef18
97 if ($is_dir) { 97 if ($is_dir) {
98 $file_suffix = "/"; 98 $file_suffix = "/";
99 } 99 }
100 100
101 foreach($files as $file) { 101 foreach($files as $file) {
102 $file_stat = @stat($dir . "/". $file); 102 $file_path = $dir."/".$file;
103
104 if (!file_exists($file_path)) { continue; }
105 $file_stat = stat($file_path);
103 106
104 $file_rows .= "<tr>"; 107 $file_rows .= "<tr>";
105 $file_rows .= "<td>". $list_file_prefix . link_to($file . $file_suffix, $file . $file_suffix)."</td>"; 108 $file_rows .= "<td>". $list_file_prefix . link_to($file . $file_suffix, $file . $file_suffix)."</td>";
106 109
107 $file_rows .= "<td>"; 110 $file_rows .= "<td>";