Subject: | "bad packet sequence" on ls of empty directory |
Date: | Wed, 17 Jul 2019 12:07:32 -0500 |
To: | bug-Net-SFTP-Foreign [...] rt.cpan.org |
From: | Alan F <granter.shadow [...] gmail.com> |
Net::SFTP::Foreign 1.90
$ perl -v
This is perl, v5.10.1 (*) built for aix-thread-multi
$ uname -a
AIX CO_JS22_PA 1 7 0006187AD400
When executing a ls() of an empty directory, the following error is
returned:
Couldn't close remote file: bad packet sequence, expected 3, got 2
Script works fine if there is at least one file in the directory.
Sample script:
#!/usr/bin/perl
use Net::SFTP::Foreign;
$Net::SFTP::Foreign::debug = 25;
$ftp = Net::SFTP::Foreign->new( "10.12.10.90", user => "CPIBatch", password
=> "xx" ) or die;
my @files = @{ $ftp->ls( "leadsftp", names_only => 1 ) };
$ftp->error and die "Couldn't ls: " . $ftp->error;
exit 0;
Debug files are attached for both a good and a bad run.
Sincerely,
AJ
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.