TraversalMode.MatchFilesShallow, you cannot use paths which explicitly refer to directories. Such paths are for example these:
You probably used on of above to get the mentioned exception. Am i right?
To learn how to use traversal modes, please see http://blog.rebex.net/download-and-upload-with-ftp-and-sftp-components-using-traversalmode/
The usage for
GetItems is same as for
to get all files from a specific directory only, use this:
to get all items (files and directories without theirs contents) from a specific directory only, use this: