Index: branches/dev/data/class/SC_UploadFile.php
===================================================================
--- branches/dev/data/class/SC_UploadFile.php	(revision 14429)
+++ branches/dev/data/class/SC_UploadFile.php	(revision 14430)
@@ -58,11 +58,7 @@
         // WEB¥µ¡¼¥ÐÉé²ÙÊ¬»¶´Ä¶­¤Î¾ì¹ç
         if($this->multi_web_server_mode === true) {
-            // FTPÍÑ¥Õ¥¡¥¤¥ë°ì»þ³ÊÇ¼ÍÑ¥Ç¥£¥ì¥¯¥È¥ê
-            $ftp_temp_dir = $this->temp_dir . "ftp_temp/";
-            // ¥Ç¥£¥ì¥¯¥È¥ê¤¬Â¸ºß¤·¤Ê¤«¤Ã¤¿¤éºîÀ®
-            if(!file_exists($ftp_temp_dir)) {
-                mkdir($ftp_temp_dir);
-                chmod($ftp_temp_dir, 0777);
-            }
+            
+            // FTPÍÑ¥Õ¥¡¥¤¥ë°ì»þ³ÊÇ¼ÍÑ¥Ç¥£¥ì¥¯¥È¥êºîÀ®
+            $ftp_temp_dir = makeFtpTempDir($this->temp_dir);
             
             $dst_file = $ftp_temp_dir . $uniqname;
@@ -350,4 +346,22 @@
         unlink($src_path);
     }
+    
+    /**
+     * FTPÍÑ¥Õ¥¡¥¤¥ë°ì»þ³ÊÇ¼¥Ç¥£¥ì¥¯¥È¥êºîÀ®
+     *
+     * @param string $dir ºîÀ®¥Ç¥£¥ì¥¯¥È¥ê
+     * @return string $ftp_temp_dir ºîÀ®°ì»þ³ÊÇ¼¥Ç¥£¥ì¥¯¥È¥ê¥Ñ¥¹
+     */
+    function makeFtpTempDir($dir) {
+        // FTPÍÑ¥Õ¥¡¥¤¥ë°ì»þ³ÊÇ¼ÍÑ¥Ç¥£¥ì¥¯¥È¥ê
+        $ftp_temp_dir = $this->temp_dir . "ftp_temp/";
+        // ¥Ç¥£¥ì¥¯¥È¥ê¤¬Â¸ºß¤·¤Ê¤«¤Ã¤¿¤éºîÀ®
+        if(!file_exists($ftp_temp_dir)) {
+            mkdir($ftp_temp_dir);
+            chmod($ftp_temp_dir, 0777);
+        }
+        
+        return $ftp_temp_dir;
+    }
 }
 ?>
