recursive listDir feature with filter for FTP