login about faq

In the FTP2 component you have a method called GetIsDirectory that tells me the file listed on the remote FTP is a directory.

But I cannot find a equivalent method in SFTP, so my question is how can I check a directory listing if the file/folder listed is a folder or file?

asked Jul 09 '13 at 03:50

Inge%20Skuseth's gravatar image

Inge Skuseth

Call ReadDir to get an SFtpDir object. Then iterate over the files within the SFtpDir object to find the file/directory of interest (the SFtpFile object). Use the SFtpFile.IsDirectory property to determine if it's a file or directory.


answered Jul 10 '13 at 12:08

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jul 09 '13 at 03:50

Seen: 2,248 times

Last updated: Jul 10 '13 at 12:08

powered by OSQA