Skip to content
Advertisement

Tag: ftp

Java FTP 550 error

I’m getting this error (550 the filename, directory name, or volume label syntax is incorrect. ) I think the url is correct (obviously not though). Any thoughts? Here is the url: Here is the invocation method: ftp class: Answer If the FTP server is running Windows, the ‘*’ characters are the problem. Windows file names may not have asterisks.

Checking file existence on FTP server

Is there an efficient way to check the existence of a file on a FTP server? I’m using Apache Commons Net. I know that I can use the listNames method of FTPClient to get all the files in a specific directory and then I can go over this list to check if a given file exists, but I don’t think

Advertisement