Index: temp/trunk/html/test/uehara/tree.php
===================================================================
--- temp/trunk/html/test/uehara/tree.php	(revision 8585)
+++ temp/trunk/html/test/uehara/tree.php	(revision 8586)
@@ -89,16 +89,20 @@
  * °ú¿ô1 ¡§¥Õ¥¡¥¤¥ë³ÊÇ¼ÇÛÎó
  */
-function getDirSize($dir) { 
-	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);
+function getDirSize($dir) {
+	if(file_exists($dir)) {
+		// ¥Ç¥£¥ì¥¯¥È¥ê¤Î¾ì¹ç²¼ÁØ¥Õ¥¡¥¤¥ë¤ÎÁíÎÌ¤ò¼èÆÀ
+		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; 
