|P is for Practical|
NET::SFTP - Permission Denied (preserve timestamps?)by alexpapa (Initiate)
|on Nov 16, 2010 at 17:42 UTC||Need Help??|
alexpapa has asked for the
wisdom of the Perl Monks concerning the following question:
I have a question regarding Net::SFTP.
I am writing a script which will poll a directory on my side for files that need to be transferred to an SFTP server every 5 minutes. I have a configuration file that defines a number of directories, some are FTP servers while some are SFTP, plus some additional information, such as whether to create a new directory remotely etc...
All of that works fine, except for one client who is giving me problems.
Error is: Couldn't get handle: Permission denied at ftpOut.pl line 147
I have tried sending a file using winSCP and received a permission error there as well - the only way to remove this was to uncheck "preserve timestamps".
So my question is, is there anyway for me to do this using Net::SFTP ?
the script ends here
the connection is made here