- Timestamp:
- 2006/11/19 16:45:23 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/test/uehara/tree.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/test/uehara/tree.php
r8582 r8583 71 71 $arrFileList[$cnt]['file_name'] = $file; 72 72 $arrFileList[$cnt]['file_path'] = $dir."/".$file; 73 $arrFileList[$cnt]['file_size'] = filesize($dir."/".$file);73 $arrFileList[$cnt]['file_size'] = getDirSize($dir."/".$file); 74 74 $arrFileList[$cnt]['file_time'] = date("Y/m/d", filemtime($dir."/".$file)); 75 75 $cnt++; … … 84 84 85 85 /* 86 * ´Ø¿ô̾¡§getDirSize() 87 * ÀâÌÀ¡¡¡§»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Î¥Ð¥¤¥È¿ô¤ò¼èÆÀ 88 * °ú¿ô1 ¡§¥Ç¥£¥ì¥¯¥È¥ê¥Ñ¥¹³ÊǼÇÛÎó 89 */ 90 function getDirSize($dir) { 91 $handle = opendir($dir); 92 while ($file = readdir($handle)) { 93 if ($file != '..' && $file != '.' && !is_dir($dir.'/'.$file)) { 94 $bytes += filesize($dir.'/'.$file); 95 } else if (is_dir($dir.'/'.$file) && $file != '..' && $file != '.') { 96 $bytes += getDirSize($dir.'/'.$file); 97 } 98 } 99 return $bytes; 100 } 101 102 /* 86 103 * ´Ø¿ô̾¡§lfErrorCheck() 87 104 * ÀâÌÀ¡¡¡§¥¨¥é¡¼¥Á¥§¥Ã¥¯
Note: See TracChangeset
for help on using the changeset viewer.
