Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.5k views
in .NET FTP by
Hello everyone,
I am new to this forum and in fact new to the EdtFTP.Net component. I am testing the component in a new project I am working on. Overall the component is very logical in how its used and I really like the ability to capture all commands and responses from the FTP session.

The problem I have is, when I try to obtain a directory listing of a folder that contains white space I receive the following ASP.Net error:

EnterpriseDT.Net.Ftp.FTPException: ./active/Web: The system cannot find the file specified.


./active/Web References is the folder I am trying to get a directory of. I have tried putting the directory in double and single quotes but the problem persists.

ASP.Net creates the

6 Answers

0 votes
by (162k points)
Some servers simply don't like doing listings of a folder with whitespace in its name.

Try ChDir() into the directory first, and then using DirDetails(".")

The problem I have is, when I try to obtain a directory listing of a folder that contains white space I receive the following ASP.Net error:

EnterpriseDT.Net.Ftp.FTPException: ./active/Web: The system cannot find the file specified.


./active/Web References is the folder I am trying to get a directory of. I have tried putting the directory in double and single quotes but the problem persists.

ASP.Net creates the
0 votes
by
Hi Bruce, thank you for your response.

I am writing a recursive function to render a list of all files and folders on the web server. Initially the function fell over when it attempted to obtain directory details of a folder containing white space within its name.

As you suggested I tried ChDir() first and then DirDetails(".") however I now receive the following error:

System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
0 votes
by
Does anyone have a solution to this problem ?
0 votes
by (162k points)
We'll need a log file to see what is going on. This approach is exactly what we use for our recursive functionality in edtFTPnet/PRO, which works fine.
0 votes
by
Where would the log file be stored?
0 votes
by (162k points)
Have a look at the Dev Guide or example/demo code included with the download, or the unit tests that are also included.

Where would the log file be stored?

Categories

...