This project is read-only.

Added: Directory.Compress() and Directory.Decompress() using NTFS file compression.

Developer
Sep 23, 2012 at 5:35 PM
Edited Sep 24, 2012 at 4:23 PM

The Directory Class has two additional methods:

Directory.Compress(string path)
Directory.Decompress(string path)

Used to compress/decompress a folder using NTFS file compression using DeviceIoControl (kernel32.dll)

 

This method enables the folder-compression attribute.
It will not compress the current contents of the folder.

However, newly created folders and files will be compressed.

Developer
Sep 23, 2012 at 5:47 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Developer
Sep 23, 2012 at 5:49 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Developer
Sep 26, 2012 at 2:38 PM
Edited Sep 26, 2012 at 4:11 PM

These methods have been renamed:

Directory.Compress()     --> Directory.EnableCompression()

Directory.Decompress()  --> Directory.DisableCompression()


This is clearly state the functionality of the method and match the naming convention of: Directory.EnableEncryption() and Directory.DisableEncryption().

Associated with Change Set: 94772

Sep 26, 2012 at 5:16 PM

Indeed.
Thank you.

Sent from mobile phone.

On Sep 26, 2012 6:38 AM, "yomodo" <notifications@codeplex.com> wrote:

From: yomodo

These methods have been renamed:

Directory.Compress() --> Directory.EnableCompression()

Directory.Decompress() --> Directory.DisableCompression()


This is clearly state the functionality of the method and match the naming convention of: Directory.EnableEncryption() and Directory.DisableEncryption().

Read the full discussion online.

To add a post to this discussion, reply to this email (alphafs@discussions.codeplex.com)

To start a new discussion for this project, email alphafs@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com