WdCopySearchOptions
Specifies file and directory filter patterns for a copy operation. Introduced in: RIT 0.0.8-Preview. Member types and availability differ by release; see Change history.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 directory names, not paths, to exclude from the copy operation (for example,
".vs;obj" to exclude Visual Studio and build output directories).
includeFileAttributesType: uint32_t A bitmask of file attributes. Files with any of the specified attributes are included in the copy. Set to
0 to not filter by attributes. For additional information on file attributes check File Attribute Constants.
excludeFileAttributesType: uint32_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.
includeDirectoryAttributesType: uint32_t Introduced in: RIT 0.0.13-preview. A bitmask of directory attributes. Directories with any of the specified attributes are included in the copy. This is the same as
includeFileAttributes applied to directories. Set to 0 to not filter by attributes.
excludeDirectoryAttributesType: uint32_t Introduced in: RIT 0.0.13-preview. A bitmask of directory attributes that cause directories to be excluded from the copy. This is the same as
excludeFileAttributes applied to directories. Set to 0 to not filter by attributes.
Examples
The name-pattern examples below useCopyTo.
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.
Change history
The RIT 0.0.13-preview changes alter the structure layout. Rebuild native callers with the header and library from the matching API NuGet package; do not pass the older structure layout to the newer API DLL.
