in reply to Re^4: Net::SFTP::Foreign stat Error
in thread Net::SFTP::Foreign stat Error

The setcwd method call is failing. It seems that the directory to_country does not exist on the server.

Though, the real funny thing is that for the remote server ./test.txt and test.txt are not the same file.

I have never seen that Serv-U SFTP server before. I will try to test it.

Replies are listed 'Best First'.
Re^6: Net::SFTP::Foreign stat Error
by csftpteam (Novice) on Oct 26, 2011 at 20:48 UTC
    The to_country directory definitely exists:

    sftp> pwd Remote working directory: /to_country sftp> ls -la -rw-rw-rw- 1 user group 112 Oct 25 20:17 test.txt

      to_country and /to_country are not the same!
        I change my change dir command to use /to_country instead of to_country and it worked! Thanks for your help! I didn't pick up on that minute difference.