FTP

Frends.FTP.ListFiles / 2.0.0

Summary

Lists what is on an FTP or FTPS server, optionally recursing, and can distinguish files from directories.

Typical use — checking whether a partner has delivered anything before committing to a transfer

Details

Frends version
5.5 and newer
Agent
Crossplatform
Target framework
net6.0

Input parameters.

Name Type Default Example Description
Directory String / / , /SubDir

Path to file(s).

FileMask String test.txt, test*.txt, test?.txt, test.(txt|xml), test.[^t][^x][^t], <regex>^(?!prof).*_test.txt

FileMask. The file mask uses regular expressions and for convenience it handles * and ? like wildcards (regex .* and .+). Parameter can begin with . For example: ^(?!prof)._test.txt is same as ^(?!prof)._test.txt). Use * or leave empty to list all files.

IncludeType IncludeType File IncludeType.File

Types to include in the directory listing.

Possible values:

  • File: Types to include in the directory listing.

  • Directory: Types to include in the directory listing.

  • Both: Types to include in the directory listing.

IncludeSubdirectories Boolean true

Include subdirectories?

An unhandled error has occurred. Reload 🗙