title: How to get a list of file copied by Net::OpenSSH->scp_get() method
body: <p>I want to copy a dir from remote machine to local. For that, I am using Net::OpenSSH perl module. It is working fine and files are also copied to my local machine. But I want to get the list of files that copied. How can I get the list of files.</p>
  
  <p>I don't want to use Net::SCP.</p>
  
  <pre><code>use Net::OpenSSH;
  use Data::Dumper;
  
  my $host='1.1.1.1';
  my $credentials={username =&gt; 'root', password =&gt;'abc123'};
  
  my $ssh_obj = Net::OpenSSH-&gt;new(
                  $host,
                  user     =&gt; $credentials-&gt;{username},
                  password =&gt; $credentials-&gt;{password},
  
              );
  ooen $fh, "&gt;/tmp/abc_scp" or die "$!";
  my $opts={recursive =&gt; 1, glob =&gt; 1, timeout =&gt; 100, quiet =&gt; 1,stderr_to_stdout =&gt; 1,stdout_fh =&gt; $fh};
  my $op=$ssh_obj-&gt;scp_get($opts, "/home/ABC", "/tmp/");
  </code></pre>