Hi,
I'm having a strange problem with the FTPClient object. I'm basically looking to backup a few files offsite when they've changed. I go through directory by directory creating as necessary. Then, if the file's lastmodified (on the server) is higher than my local copy, I do a Get(string, string) using the local file path and the remote file name.
In this case it is...
oClient.Get("c:\temp\jason", "hello.txt");
Now, this seems rather obvious, but I keep getting an UnAuthorizedAccessException saying that I do not have access to the path "c:\temp\jason". I looked at permissions, but I don't think that's it since I'm running this in a Windows Forms app which is running under my own (admin) security context. Plus I just created the directory in code, so I should have access to it. I realize, it looks like it isn't related to FTPClient, but perhaps it is.
Do you have a way to change the local working directory (like a LCD)? Also, do you know why this is happening?