in reply to using sftp to get file information for processing
If you look at that script it should give you a little more insight on how to use the functions.sub process_ls { my($shell, @arg) = @_; $shell->mywarn("usage: ls [path]"), return unless @arg < 2; $shell->{sftp}->ls($arg[0] || $shell->{pwd}, sub { print $_[0]->{longname}, "\n" }); }
|
|---|