Lines 674-679
Link Here
|
674 |
|
674 |
|
675 |
IHostFile remoteHostFile = getFile(remoteParent,remoteFile,null); |
675 |
IHostFile remoteHostFile = getFile(remoteParent,remoteFile,null); |
676 |
|
676 |
|
|
|
677 |
if(remoteHostFile == null) |
678 |
{ |
679 |
return false; |
680 |
} |
681 |
|
682 |
if(!remoteHostFile.exists()) |
683 |
{ |
684 |
throw new RemoteFileIOException(new Exception(FTPServiceResources.FTPService_FTP_File_Service_Not_Found)); |
685 |
} |
686 |
|
677 |
if(_commandMutex.waitForLock(monitor, Long.MAX_VALUE)) |
687 |
if(_commandMutex.waitForLock(monitor, Long.MAX_VALUE)) |
678 |
{ |
688 |
{ |
679 |
try |
689 |
try |
Lines 681-687
Link Here
|
681 |
FTPClient ftpClient = getFTPClient(); |
691 |
FTPClient ftpClient = getFTPClient(); |
682 |
|
692 |
|
683 |
MyProgressMonitor progressMonitor = new MyProgressMonitor(monitor); |
693 |
MyProgressMonitor progressMonitor = new MyProgressMonitor(monitor); |
684 |
//IHostFile remoteHostFile = null; |
|
|
685 |
OutputStream output = null; |
694 |
OutputStream output = null; |
686 |
InputStream input = null; |
695 |
InputStream input = null; |
687 |
|
696 |
|
Lines 700-706
Link Here
|
700 |
output = new FileOutputStream(localFile); |
709 |
output = new FileOutputStream(localFile); |
701 |
input = ftpClient.retrieveFileStream(remoteFile); |
710 |
input = ftpClient.retrieveFileStream(remoteFile); |
702 |
|
711 |
|
703 |
if(remoteHostFile != null && input != null) |
712 |
if(input != null) |
704 |
{ |
713 |
{ |
705 |
progressMonitor.init(0, remoteFile, localFile.getName(), remoteHostFile.getSize()); |
714 |
progressMonitor.init(0, remoteFile, localFile.getName(), remoteHostFile.getSize()); |
706 |
byte[] buffer = new byte[4096]; |
715 |
byte[] buffer = new byte[4096]; |