Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8005849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:19:45+00:00 2026-06-04T17:19:45+00:00

First I asked that: ftp directory listing timeout. Huge number of subdirs . I

  • 0

First I asked that: ftp directory listing timeout. Huge number of subdirs. I got the answer.

Still because I can have hundred thousands of FTP objects in the directory it could take really long time to scan that. However I thought it might be possible to retrieve all the objects that begin with ‘A’ and then ‘B’ and so on… As it retrieves directories it could start processing them on the other thread without waiting till it gets the entire list.

Is it possible to do FTP directory listing with wildcards using standard FtpWebRequest?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T17:19:46+00:00Added an answer on June 4, 2026 at 5:19 pm

    The most recent update to the FTP specification (RFC 3659) explicitly forbids it. From section 2.2.2 of that specification, titled "Wildcarding" (emphasis mine):

    For the commands defined in this specification, all pathnames are to
    be treated literally. That is, for a pathname given as a parameter to
    a command, the file whose name is identical to the pathname given is
    implied. No characters from the pathname may be treated as special or
    "magic", thus no pattern matching (other than for exact equality)
    between the pathname given and the files present in the NVFS of the
    server-FTP is permitted.

    Clients that desire some form of pattern
    matching functionality must obtain a listing of the relevant
    directory, or directories, and implement their own file name
    selection procedures.

    That said, if your server supports it, you could still use the FtpWebRequest class, but you’d have to process the response yourself to handle the list of items, as the .NET classes won’t understand your server-specific extensions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First off, I apologize if this has been asked before. I can't seem to
i've asked the first question about selects here , i thought, that when i
first question asked, so I'll get straight to it. I've got some C code
Asked this first on serverfault, and someone recommended that I ask here. I'm looking
First, I'd like to point out that this question is probably already asked, I
First, I know this question has been asked several times before and that in
There has been asked that question already. The answer was Stack space for local
This question changed a lot since it was first asked because I didn't understand
This question completes the first one that I asked here about how to change
I'm working on my first real WinForms application, and my boss has asked that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.