Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Cannot Reproduce
-
1.4
-
None
-
None
-
Operating System: Windows
Description
The method works perfectly in case I am transferring the file to a Linux/Unix machine. However if I am transferring a file to a windows machine the storeFile method returns false.
The code snippet:
File local = new File(localFile);
if (local.exists()){
in = new FileInputStream(local);
if (ftpSession.storeFile(remoteFile, in))
else
{ System.out.println("file cannot be transferred"); }}
The remoteFile and the the local fileName are correct. Still the storeFile method is returning false.