http://www.perlmonks.org?node_id=986261


in reply to Re^6: Net::SSH2 list files
in thread Net::SSH2 list files

look at the other fields on the hash returned by $dh->read, they probably contain enough information to let you filter out non file entries.