Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.1k views
in .NET FTP by (160 points)
hi,

i think i found a bug in the GetFileInfos methods for example if you use the GetFileInfos(string remoteDirectory) and put as remoteDirectory a directory which contains a dot like this : "/root/01. Test/" it will fail with an exception that gives a message the file "/root/01." doesn't exist or was not found code 550 ... anyway.

i'm trying to resolve this issue but if someone can help it will be nice

thx in advance

3 Answers

0 votes
by (162k points)
Best to change into this directory first and *then* call the method
0 votes
by (160 points)
hi,

i didn't understand what do y mean by it's best to change to that directory first.

i tried what you said by doing
MyFTPConnection.ChangeWorkingDirectory("/root/04. Test/");

but this still raises the exception that says : the file doesn't exist "/root/04."
One thing to note is that problems occurs only if i connect to a remote server (windows NT) but this exception doesn't occur when i try on my local machine with FileZilla configured as a Unix server by default.

I'm also having problems downloading files with accents in their names, i specified
MyFTPConnection.CommandEncoding = new UTF8Encoding(false);
and now i have the exact file name when i use the GetFileInfos but when trying to download the file with the MyFTPConnection.DownloadFile(localDirectory + @"\" + file.Name, file.Name); it throws a File not found exception.

thanks in advance
0 votes
by (162k points)
You need to find some way of changing into remote directories. Perhaps you need to use quotes around the directory or something like that.

In the latter case, it is probably a server message so the server isn't recognizing the filename. Try posting a log file that shows a bit more info.

Categories

...