DirectoryOptionsSearchPattern Property |
Gets or sets a string that will be used to match against the names of files.
Namespace:
Microsoft.Azure.Storage.DataMovement
Assembly:
Microsoft.Azure.Storage.DataMovement (in Microsoft.Azure.Storage.DataMovement.dll) Version: 2.0.1.0 (2.0.1.0)
Syntax public string SearchPattern { get; set; }
Public Property SearchPattern As String
Get
Set
public:
property String^ SearchPattern {
String^ get ();
void set (String^ value);
}
member SearchPattern : string with get, set
Property Value
Type:
StringRemarks
Behavior of SearchPattern match varies for different source directory types and setting of Recursive:
When source is local directory path, SearchPattern is matched against source file name as standard wildcards. If
recuresive is set to false, only files directly under the source directory will be matched. Otherwise, all files in the
sub-directory will be matched as well.
When source is Azure blob directory, if recuresive is set to true, SearchPattern is matched against source blob as name prefix.
Otherwise, only Azure blob with the exact name specified by SearchPattern will be matched.
When source is Azure file directory, if recursive is set to true, SearchPattern is not supported. Otherwise, only Azure file
with the exact name specified by SearchPattern will be matched.
If SearchPattern is not specified, "*.*" will be used for local directory source while empty string for Azure blob/file
directory. So please either specify the Search Pattern or set Recursive to true when source is Azure blob/file directory,
otherwise, no blob/file will be matched.
See Also