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

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

Replies are listed 'Best First'.
Re^7: Net::SFTP::Foreign stat Error
by salva (Canon) on Oct 26, 2011 at 21:04 UTC
    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.