in reply to Re: Doing an 'ls' in SFTP:Foreign
in thread Doing an 'ls' in SFTP:Foreign
Ok, I am ALMOST there... I have the 'ls' going to a array and getting close to what I would expect. Currently, it is ignoring hidden files and giving filenames. What I need is to get the size of each file without all the atime, mtime, perms etc... that appears to be default in SFTP-Foreign.
NOTE: I am only using 'names_only' as a proof of concept in case that negates any file size arguments I would put in there. Does anyone know how to get the file size as an argument in the string I am using?my @newarray = @{ $sftp->ls('/home/ftptest/inbound', names_only => 1, +no_wanted => qr/^\./ )};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Doing an 'ls' in SFTP:Foreign
by salva (Canon) on Feb 21, 2013 at 09:13 UTC | |
by StarkRavingCalm (Sexton) on Feb 21, 2013 at 15:05 UTC |