login about faq

I'm wondering if there is a suggested way for bring back FTP files when calling NumFilesAndDirs. Previously I had been setting ListPattern = @"-a" but this is causing failures on certain servers and causes no files to be listed. I'm just wondering if there is a better suggestion?

asked Oct 31 '12 at 09:10

zenox's gravatar image

zenox
1334


The contents of the ListPattern property is passed to the "LIST" FTP command. What is possible/acceptable will depend on the server-side operating system as well as the FTP server implementation. It's safe to assume that all FTP servers and operating systems will support wildcarded filenames, where a "*" character indicates 0 or more of any characters.

However, things such as "-a" would only apply to Unix-based operating systems. Also, the concept of hidden files might also only apply on certain operating systems. There is no good solution other than to know the type of system on the server-side.

link

answered Oct 31 '12 at 10:43

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×90
×7

Asked: Oct 31 '12 at 09:10

Seen: 1,111 times

Last updated: Oct 31 '12 at 10:43

powered by OSQA