WdCopySearchOptions
Specifies file and directory filter patterns for a copy operation.Syntax
Members
_In_z_ includeFilePatternType: const char* A glob pattern specifying which files to include in the copy operation (for example,
"*" to include all files, or "*.exe;*.dll" to include only executables and DLLs).
_In_z_ excludeFilePatternType: const char* A glob pattern specifying which files to exclude from the copy operation (for example,
"*.pdb" to exclude debug symbols).
_In_z_ excludeDirPatternType: const char* A glob pattern specifying which directories to exclude from the copy operation (for example,
".vs;obj" to exclude Visual Studio and build output directories).
includeFileAttributesType: uint64_t A bitmask of file attributes that files must have to be included in the copy. Set to
0 to not filter by attributes. For additional information on file attributes check File Attribute Constants.
excludeFileAttributesType: uint64_t A bitmask of file attributes that cause files to be excluded from the copy. Set to
0 to not filter by attributes. For additional information on file attributes check File Attribute Constants.
Examples
Copy only.exe and .dll files:
temp from the copy:
When there is a conflict between include and exclude patterns, the exclude pattern takes precedence and the file will not be copied.
Remarks
Pass this structure to WdRemoteCopy via thesearchOptions parameter to filter which files and directories are included in the copy operation. If nullptr is passed for searchOptions, all files are copied with no filtering.
