Subject: | Detect if the server support preserve timestamp or this specific error |
Date: | Tue, 9 Sep 2014 10:45:14 +0200 |
To: | bug-Net-SFTP-Foreign [...] rt.cpan.org |
From: | Juan Antonio Castillo Dayer <juan.castillo [...] meteologica.com> |
Hi,
I would know if it's possible discover with this module if a server
supports preserve the timestamp or if the put function fails exactly
for a problem trying preserve the time.
I would be able to upload a files with preserve mode and don't retry
them it the errors are related with preserve time or permissions.
For example, FileZilla tries preserving the time, but it doesn't
consider the upload as failed:
Status: Starting upload of /tmp/python.txt
Command: cd "/"
Response: New directory is: "/"
Command: put "/tmp/python.txt" "python.txt"
Status: local:/tmp/python.txt => remote:/python.txt
Command: chmtime 1409668373 "python.txt"
Error: set attrs for /python.txt: no such file or directory
Status: File transfer successful, transferred 738 B in 1 second
Sorry for the inconvenience.
Best regards,
--
Juan Antonio Castillo Dayer
Ingeniero de Telecomunicación