Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

rutsch

Posts

2

Joined

Wed Sep 23, 2009 4:02 pm

GetFileInfos recursive not returning files from subfolders

by rutsch » Wed Sep 23, 2009 4:36 pm

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
no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

by EDT Support » Wed Sep 23, 2009 5:08 pm

They should be returned in a hierarchical structure. Have a look at the Children property of the FTPFile objects corresponding to directories.

- Hans (EnterpriseDT)
no avatar
User

rutsch

Posts

2

Joined

Wed Sep 23, 2009 4:02 pm

by rutsch » Wed Sep 23, 2009 5:26 pm

Hmmm, i feel stupid now.....
Indeed they are all in there.

Thank you very much for the quick reply!

Rutger

Who is online

Users browsing this forum: No registered users and 11 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign