From: donghyuk.yang Date: Mon, 20 Aug 2012 08:43:31 +0000 (+0900) Subject: [Title] Applied ftp passive mode X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b67fdab3d714175a733bfd986ef6f184b4d9990;p=sdk%2Ftools%2Fsdk-build.git [Title] Applied ftp passive mode [Type] [Module] [Priority] [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] --- diff --git a/src/common/fileTransfer.rb b/src/common/fileTransfer.rb index 32112c5..2fa3249 100644 --- a/src/common/fileTransfer.rb +++ b/src/common/fileTransfer.rb @@ -18,6 +18,7 @@ class FileTransfer logger.info "[FTP log] Connected FTP server (#{ip}:#{port})" ftp.login(username, passwd) ftp.binary = true + ftp.passive = true ftp.mkdir(uniqdir) ftp.chdir(uniqdir) ftp.put(bpath) @@ -60,6 +61,7 @@ class FileTransfer logger.info "[FTP log] Connected FTP server (#{ip}:#{port})" ftp.login(username, passwd) ftp.binary = true + ftp.passive = true ftp.chdir(dirname) ftp.get(filename, dst_file) logger.info "[FTP log] Get a file" @@ -112,5 +114,5 @@ class FileTransfer end return true - end + end end