Partial list of FTP directories with wildcards

At first I asked that: ftp directory listing timeout. A huge number of sub-directors . I got an answer.

However, since I can have hundreds of thousands of FTP objects in a directory, it can take a very long time to verify this. However, I thought it would be possible to recover all objects starting with “A” and then “B”, etc. When he retrieves the directories, he can start processing them on another thread, without waiting until he gets the whole list.

Is it possible to make a list of FTP directories using wildcards using standard FtpWebRequest?

+5
source share
2 answers

FTP (RFC 3659) . 2.2.2 " " ():

, , . , , , , , . "", ( ) , NVFS -FTP .

, - .

, , FtpWebRequest, , .NET .

+7

FTP , (LIST, NLIST, MLSD ..) . , .

RFC 959 (LIST + NLIST):

2.2.

...

pathname

, . / , . FTP . , .

...

5.3.1. FTP

...

LIST [<SP> <pathname>] <CRLF>
NLST [<SP> <pathname>] <CRLF>

RFC 3659 (MLSD):

2.2.2.

, , . , , , . "", ( ) , NVFS -FTP.

...

7.1. MLSx

...

MLSx:

mlst             = "MLst" [ SP pathname ] CRLF
mlsd             = "MLsD" [ SP pathname ] CRLF

FTP- wilcards. , , .

Vsftpd *, ? {} LIST. vsftpd MLSD.

ProFTPD *, ? []. LIST. MLSD :

RFC3659 . , .

PureFTPd *, ? [] LIST MLSD.

FileZilla * LIST MLSD.


FTP- - .

- . , ( Regex)

0

All Articles