in reply to net::sftp::foreign->rename / remove issues

The SFTP protocol has native support for the RENAME operation, it is not something emulated by Net::SFTP::Foreign, so if it leaves the old file around it is probably the server fault.

Can you post your code? Which SSH software are you using on the server side?

  • Comment on Re: net::sftp::foreign->rename / remove issues

Replies are listed 'Best First'.
Re^2: net::sftp::foreign->rename / remove issues
by ethrbunny (Monk) on Oct 08, 2007 at 21:48 UTC
    To be clear: when you say 'server' - do you mean the box where the files are being moved / renamed or where the commands are originating from?

    Also - why would the 'remove' command report success when it wasn't successful?
      when you say 'server' - do you mean the box where the files are being moved

      Yes!

      Also - why would the 'remove' command report success when it wasn't successful?

      I have no idea, I can not see any error on the module code.

      I have just uploaded a new version of the module to CPAN that supports better debugging. Can you install that version, add...

      $Net::SFTP::Foreign::debug = 25;
      at the beginning of your script, reproduce the problem and send me the debugging output for that execution (and the script, of course!)
        I updated the module and the result(s) have me very puzzled. I think this (your?) module has been working as it should and the issue is deeper in my side somewhere. I expect that this is no great surprise.

        I'll work to getting a good repro case.

        Thanks for adding the debugging output.