Re: PutFile not finding local file (General questions)
By the way, this forum sucks; I lost my entire post three times because of various login-related issues.
A-ha. Following your suggesting, I think I've figured it out. Here's what I saw:
When I set LocalPath (but only if I specified the full path to the file, and whether or not I specified the file again via putFile) I got a different error: 800a7542, Server returned an error: Permission denied.
I knew I was successfully connected because I could get a directory listing. I then realized that the remote site, when connected to via a GUI client, throws my user into a specific subdirectory. Specifying that in the putFile command (e.g. putFile sFile, /directoryName/ ) seems to have done the trick. The confusing thing was that the first error of LocalPath should specify a file, and such file does not exist. implies a local issue, but it turns out to be more related to remote permissions.
Also, I MUST do:
sftp.LocalPath sFile
sftp.putFile sFile, /directoryName/
because if I omit the first line, I get the local file not found error. Odd, that.
Anyway, thanks for your help.
Complete thread:
- PutFile not finding local file - Nate, 2005-11-02, 22:47
- Re: PutFile not finding local file - wodSupport, 2005-11-02, 22:55
- Re: PutFile not finding local file - bugmenot, 2008-03-13, 21:09
- Re: PutFile not finding local file - wodDamir, 2008-03-13, 21:23
- Re: PutFile not finding local file - bugmenot, 2008-03-13, 21:43
- Re: PutFile not finding local file - wodDamir, 2008-03-13, 22:33
- Re: PutFile not finding local file - bugmenot, 2008-03-14, 21:19
- Re: PutFile not finding local file - doteffect, 2008-03-20, 23:17
- Re: PutFile not finding local file - woddrazen, 2008-03-20, 23:56
- Re: PutFile not finding local file - doteffect, 2008-03-20, 23:17
- Re: PutFile not finding local file - bugmenot, 2008-03-14, 21:19
- Re: PutFile not finding local file - wodDamir, 2008-03-13, 22:33
- Re: PutFile not finding local file - bugmenot, 2008-03-13, 21:43
- Re: PutFile not finding local file - wodDamir, 2008-03-13, 21:23
- Re: PutFile not finding local file - bugmenot, 2008-03-13, 21:09
- Re: PutFile not finding local file - wodSupport, 2005-11-02, 22:55