Hi Claus As shown below the code does listFiles(".") - it should be listFiles(). Further below you can see how MVS doesn't return any files when doing "ls ."
public List<FTPFile> listFiles() throws GenericFileOperationFailedException { return listFiles("."); } public List<FTPFile> listFiles(String path) throws GenericFileOperationFailedException { // use current directory if path not given if (ObjectHelper.isEmpty(path)) { path = "."; } try { final List<FTPFile> list = new ArrayList<FTPFile>(); FTPFile[] files = client.listFiles(path); // can return either null or an empty list depending on FTP servers if (files != null) { list.addAll(Arrays.asList(files)); } return list; } catch (IOException e) { throw new GenericFileOperationFailedException(client.getReplyCode(), client.getReplyString(), e.getMessage(), e); } } Behaviour shown with ftp.exe: ftp> cd 'SDN.OUT.EDI' 250 "SDN.OUT.EDI" is the working directory name prefix. ftp> ls . 200 Port request OK. 550 No data sets found. ftp> ls 200 Port request OK. 125 List started OK FILE001 FILE002 250 List completed successfully. ftp: 34 bytes received in 0,00Seconds 17,00Kbytes/sec. -- View this message in context: http://camel.465427.n5.nabble.com/FTP-on-MVS-filesystem-tp1092836p1835833.html Sent from the Camel - Users mailing list archive at Nabble.com.