No. glob returns a list.
From the documentation for Net::SFTP::Foreign:glob
$sftp->glob($pattern, %opts)From the documentation for Net::SFTP::Foreign:findperforms a remote glob and returns the list of matching entries in the same format as the "find" method.
$sftp->find($path, %opts)
$sftp->find(\@paths, %opts)Does a recursive search over the given directory $path (or directories @path) and returns a list of the entries found or the total number of them on scalar context. Every entry is a reference to a hash with two keys: filename, the full path of the entry; and a, a Net::SFTP::Foreign::Attributes object containing file atime, mtime, permissions and size.
salva wrote:
No. He is already using the names_only feature that makes the method return just the file names instead of hashes.Good point.
In reply to Re^5: SFTP Foreign Issues using $sftp->ls
by Lotus1
in thread SFTP Foreign Issues using $sftp->ls
by Vita
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |