I have a perl SFTP script that everything seems to work except for when
I try to set permissions on a remote file.. Here is my sample code:
...
$a = Net::SFTP::Attributes->new;
$a->perm(755);
foreach $item (@filelist) {
$dest = "/tmp/$item";
$confirm = $ftp->put($item,$dest);
$ftp->do_setstat($dest, $a);
print "Confirm: put $locl to $dest\n";
the file gets put over but the permissions are not changed. Any help
would be greatly appreciated..
thanks
troy
|