DirectoryEnableCompressionTransacted Method (KernelTransaction, String) |
[AlphaFS] Enables NTFS compression of the specified directory and the files in it.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static void EnableCompressionTransacted(
KernelTransaction transaction,
string path
)
Public Shared Sub EnableCompressionTransacted (
transaction As KernelTransaction,
path As String
)
public:
static void EnableCompressionTransacted(
KernelTransaction^ transaction,
String^ path
)
static member EnableCompressionTransacted :
transaction : KernelTransaction *
path : string -> unit
Parameters
- transaction
- Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction. - path
- Type: SystemString
A path to a directory to compress.
Exceptions Remarks This method enables the directory-compression attribute. It will not compress the current contents of the directory. However, newly created files and directories will be compressed.
See Also