Subject: | cd command does not remember cwd |
The 'cd' command does not remember current working directory, and as such it's impossible to issue successive cd commands; one must know the pathname at the outset.
i.e., if one wanted to cd to directory /a/b/c/d on a remote SMB share, the following will fail:
my $smb = new Filesys::SmbClientParser("/usr/bin/smbclient",(user => 'user', password => 'pass'));
$smb->Host('remotehost');
$smb->Share('remoteshare');
$smb->cd("a");
$smb->cd("b");
$smb->cd("c");
and rather, one must use:
my $smb = new Filesys::SmbClientParser("/usr/bin/smbclient",(user => 'user', password => 'pass'));
$smb->Host('remotehost');
$smb->Share('remoteshare');
$smb->cd("a\b\c");
If this behavior is by design, it is unclear from the documentation.