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

I'm trying to retrieve a list of all files in an SFTP folder + it's subfolders but this does not seem to work.
I call FTPFile[] files = mSecureFileTransfer.GetFileInfos("", true);

It seems that all subfolders are searched (because it takes pretty long to complete) but the files object that is returned only lists the foldernames but not the files in there.

Is this the way it should work or am i doing something wrong?

Thanks in advance.

With kind regards,

Rutger Scheepens

2 Answers

0 votes
by (51.6k points)
They should be returned in a hierarchical structure. Have a look at the Children property of the FTPFile objects corresponding to directories.

- Hans (EnterpriseDT)
0 votes
by (160 points)
Hmmm, i feel stupid now.....
Indeed they are all in there.

Thank you very much for the quick reply!

Rutger

Categories

...