Index: temp/trunk/html/test/uehara/tree.php
===================================================================
--- temp/trunk/html/test/uehara/tree.php	(revision 8583)
+++ temp/trunk/html/test/uehara/tree.php	(revision 8585)
@@ -69,8 +69,9 @@
 sfprintr($file);	// ¹ÔËö¤Î/¤ò¼è¤ê½ü¤¯
 					$dir = ereg_replace("\/$", "", $dir);
+					$path = $dir."/".$file;
 					$arrFileList[$cnt]['file_name'] = $file;
-					$arrFileList[$cnt]['file_path'] = $dir."/".$file;
-					$arrFileList[$cnt]['file_size'] = getDirSize($dir."/".$file);
-					$arrFileList[$cnt]['file_time'] = date("Y/m/d", filemtime($dir."/".$file)); 
+					$arrFileList[$cnt]['file_path'] = $path;
+					$arrFileList[$cnt]['file_size'] = getDirSize($path);
+					$arrFileList[$cnt]['file_time'] = date("Y/m/d", filemtime($path)); 
 					$cnt++;
 				}
@@ -86,15 +87,19 @@
  * ´Ø¿ôÌ¾¡§getDirSize()
  * ÀâÌÀ¡¡¡§»ØÄê¤·¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Î¥Ð¥¤¥È¿ô¤ò¼èÆÀ
- * °ú¿ô1 ¡§¥Ç¥£¥ì¥¯¥È¥ê¥Ñ¥¹³ÊÇ¼ÇÛÎó
+ * °ú¿ô1 ¡§¥Õ¥¡¥¤¥ë³ÊÇ¼ÇÛÎó
  */
 function getDirSize($dir) { 
-    $handle = opendir($dir); 
-    while ($file = readdir($handle)) { 
-        if ($file != '..' && $file != '.' && !is_dir($dir.'/'.$file)) { 
-            $bytes += filesize($dir.'/'.$file); 
-        } else if (is_dir($dir.'/'.$file) && $file != '..' && $file != '.') { 
-            $bytes += getDirSize($dir.'/'.$file); 
-        } 
-    } 
+	if (is_dir($dir)) {
+	    $handle = opendir($dir); 
+	    while ($file = readdir($handle)) { 
+	        if ($file != '..' && $file != '.' && !is_dir($dir.'/'.$file)) { 
+	            $bytes += filesize($dir.'/'.$file); 
+	        } else if (is_dir($dir.'/'.$file) && $file != '..' && $file != '.') { 
+	            $bytes += getDirSize($dir.'/'.$file); 
+	        } 
+	    } 
+	} else {
+		$bytes = filesize($dir);
+	}
     return $bytes; 
 } 
