Hi Tahir,
I think the permissions are ok...the problem occurs even before the FTPClient tries to "get" the files. As I mentioned, when the "listFiles()" method is invoked on the directory, I get back 0 files in the FTPFile[ ] (although there are 8 files in the directory). Code snippet shown below...

Thanks,
-Riz.

           ftpClient.changeWorkingDirectory(OUTGOING_FOLDER);
           ftpClient.setFileType(FTP.BINARY_FILE_TYPE);

           FTPFile[] files = ftpClient.listFiles();
logger.debug("Number of files in dir: " + files.length); //this outputs the value 0



Tahir Akhtar wrote:
You can check if the [tomcat] user on linux box has correct file system
permissions.

-----Original Message-----
From: Rizwan Merchant [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 20, 2006 9:11 AM
To: commons-user@jakarta.apache.org
Subject: FTPClient works on Windows, not on FC4

Hi,
I have an application that uses the FTPClient class to connect to a server and download some files. This application is being developed on a Windows box and it works fine from there.

But when I port the application to a Fedora Core 4 env, it seems to not work. FTPClient lets the application log in and move around in the directory structure, but when the listFiles() command is invoked, the length of the array is 0 (ie as if there are no files in the directory). I am certain there are files in that directory (and it shows when running the application on a Windows env).

Could anyone tell me what the problem could be here??
Thanks,
-Riz.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to