Subject: | Method 'mkdir' does not work at all. |
"Couldn't stat remote file (stat): No such file or directory"
I get the above error every time I try to make a new directory via
$sftp->mkdir($path) in Net-SFTP-Foreign-0.90_15 under OpenSSH_4.3p2,
OpenSSL 0.9.7e-p1, perl-5.8.8, FreeBSD-6.1 i386.
Here's the code:
my $mkdir = '/usr/local/test';
if (!$sftp->mkdir($mkdir)) {
print STDERR "Error creating dest dir ($mkdir): " . $sftp->error;
}
All other methods, including 'new', work fine.