Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^6: Net::SSH2 list files

by WhiskeyJack (Initiate)
on Aug 08, 2012 at 12:56 UTC ( #986259=note: print w/ replies, xml ) Need Help??

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

(-----O-----) *hug*

Thank you a lot for the help, this seems to work. It prints some extra information if there are some folders in the folder I am looking at but it also prints all the files

This is what I got:

".aptitude, .bashrc, of the files), .cache, .., .bash_history, test.txt(the other file), TestAddDir(the directory in the directory that I am listing), .viminfo, .profile, .debtags, ."

If you can't be bothered I can probably figure out how to remove these other things that are shown.

Comment on Re^6: Net::SSH2 list files
Replies are listed 'Best First'.
Re^7: Net::SSH2 list files
by salva (Abbot) on Aug 08, 2012 at 13:04 UTC
    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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://986259]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (14)
As of 2015-11-30 22:58 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (788 votes), past polls