in reply to Why SFTP copy_time doesn't work?

Can you show us the code giving you the problem?

I've looked briefly over documentation for Net::SFTP, Net::SFTP::Foreign, and Net::SFTP::Foreign::Compat, and I don't see anything about a copy_time parameter anywhere. Perhaps this is a code reference you've created for giving a status message?

The docs for Net::SFTP and Net::SFTP::Foreign both say that their status method returns status codes similar to the one you mention ("SSH2_FX*"), so I wonder what problem you're having there too.

Anyway, some more details would be helpful.

Replies are listed 'Best First'.
Re: More info, please.
by sched (Initiate) on Jan 09, 2007 at 19:59 UTC

    Well, I use the Dev. release and the "status" method does not return more the numeric value of "SSH2_FX*" as the stable release.

    I made a switch case statement using the numeric return, but may I now need to get the status string and no more the numeric value, just to personalize the errors messages.

    Thank you very much!

      the return value for the status method is both a number and a string, it works in the same way as $!, so you can compare it numericaly if you wish.

      Anyway, for most high level methods such as put, get, etc., the status value doesn't really mean anything, it's just the server response to the last low level request. It is implementation dependant and could change between versions of the module. You will be better using the error method.