DirectoryCompress Method (String, DirectoryEnumerationOptions, DirectoryEnumerationFilters) |
[AlphaFS] Compresses a directory using NTFS compression.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax public static void Compress(
string path,
DirectoryEnumerationOptions options,
DirectoryEnumerationFilters filters
)
Public Shared Sub Compress (
path As String,
options As DirectoryEnumerationOptions,
filters As DirectoryEnumerationFilters
)
public:
static void Compress(
String^ path,
DirectoryEnumerationOptions options,
DirectoryEnumerationFilters^ filters
)
static member Compress :
path : string *
options : DirectoryEnumerationOptions *
filters : DirectoryEnumerationFilters -> unit
Parameters
- path
- Type: SystemString
A path that describes a directory to compress. - options
- Type: Alphaleonis.Win32.FilesystemDirectoryEnumerationOptions
DirectoryEnumerationOptions flags that specify how the directory is to be enumerated. - filters
- Type: Alphaleonis.Win32.FilesystemDirectoryEnumerationFilters
The specification of custom filters to be used in the process.
Exceptions Remarks This will only compress the root items (non recursive).
See Also