I am trying to create a directory using SFTP on a remote system. When I use the do_mkdir after creating the SFTP object, I recieve the following error.
Input must be eight bytes long at /
/aix/Crypt/DES.pm line 57. Please find the code snippet below.
my $attrb=Net:
FTP::Attributes->new;
$attrb->flags($attrb->flags | SSH2_FILEXFER_ATTR_PERMISSIONS);
$attrb->perm(oct(775));
$target="/home/temp/test";
if(!$sftp->do_mkdir($target,$attrb))
do...
I am getting the error at the point if(!$sftp->do_mkdir($target,$attrb)) . Does anyone know why this error occurs and what is the solution?