Closed as documentation error.
FTP List Files activity is listing directories as well as files when "LIST ONLY FILES" option is checked.
NA. As designed behaviour
When using the List Files activity and selecting the "LIST ONLY FILES" option, in some circumstances, a user is returned directories in the listing as well as files. If the List Only Files (NLST) check box is selected and the FTP List Files activity supports the format of the directory listing for your FTP Server, a repeating structure of just filenames (if supported by the FTP server) is returned in the fileListing output parameter. The FTP server you are connecting to must support the NLST command. The response provided by the FTP server is returned. If the FTP server does not support this, then a listing including directories is returned. Anyone experiencing this can work around the problem in the following way: 1. Dont select "List Only Files" option. 2. Once you get the complete string, use FlatFiles schema and ReadFlatFIles activity to get each line as a string. 3. Parse the String to get the names for only files and not directory based on "d" or "-" present in the first character in the returned string
The WebSphere Cast Iron documentation will be updated to detail this. The related infocenter page is: http://publib.boulder.ibm.com/infocenter/wci/v6r1m0/index.jsp?to pic=%2Fcom.ibm.websphere.cast_iron.doc%2Fftp_list_files_activity .html&resultof=%22list%22%20%22only%22%20%22onli%22%20%22files%2 2%20%22file%22
Reported component name
CI PHYS APPL FC
Reported component ID
Last modified date
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Applicable component levels
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.