RemotePath.EscapeFileMask Method
Converts special characters in file path to make it an unambiguous file mask/wildcard.
Advertisement
Syntax
C#
public static string EscapeFileMask(string fileMask)
VB.NET
Public Shared Function EscapeFileMask(fileMask As String) As String
Parameters
Name | Description |
---|---|
string fileMask | File path to convert. |
Return Value
Examples
Real-Life Examples
- Recursively download directory tree with custom error handling;
- Automating transfers or synchronization in parallel connections over SFTP/FTP protocol;
- Pack files to ZIP archive and upload it;
- Downloading the most recent file.
Advertisement