Ignore directories when building the sftp file list