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

olexa_k

Posts

2

Joined

Mon Jul 05, 2010 4:09 am

How can I get list of subdirectories?

by olexa_k » Mon Jul 05, 2010 4:18 am

Dear support,

I am avaluating edtFTPnet/PRO. I want to get list of all files and subdirectories in a directory. To get file list for SFTP sever I use SecureFTPConnection.GetFiles(string pathToDirectory).
How can I get list of subdirectories?

Thanks.
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: How can I get list of subdirectories?

by support2 » Tue Jul 06, 2010 2:06 am

Use GetFileInfos(string directory, bool includeSubdirectories)

and set includeSubdirectories to true.
no avatar
User

olexa_k

Posts

2

Joined

Mon Jul 05, 2010 4:09 am

Thanks

by olexa_k » Tue Jul 06, 2010 3:49 am

Thanks!

Who is online

Users browsing this forum: No registered users and 41 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron