Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
New Windows Module: win_compact #56475
Adding a module for setting NTFS compression on folders/subfolders. This is shown as the
I named it
if you have the folder structure:
win_compact: path: My Folder compressed: yes recurse: no
will compress My Folder, file1, and file2.
win_compact: path: My Folder compressed: yes recurse: yes
will compress My Folder, file1, file2, anotherfolder, anotherfile1, and anotherfile2
@Daniel-Sanchez-Fabregas @LiranNis @SamLiu79 @TimothyVandenbrande @andrewsaraceni @ar7z1 @blakfeld @brianlloyd @cchurch @chopraaa @chrishoffman @crossan007 @daBONDi @dlazz @elventear @equelin @henrikwallstrom @it-praktyk @itigoag @jiuka @johnboy2 @joshludwig @ksubileau @marqelme @mcassaniti @michaeldeaton @nwchandler @nwsparks @petemounce @ptemplier @rcanderson23 @richardcs @riponbanik @sbaerlocher @schwartzmx @smadam813 @themiwi @tksarah
As a maintainer of a module in the same namespace this new module has been submitted to, your vote counts for shipits. Please review this module and add
I like win_file_compression. I would have went with win_ntfs_compress since I didn't add the functionality to compress single files, but I think I could add that using either
Okay, I went with win_file_compression. I also made it so you can un/compress single files if
I also changed the way it checks for whether or not it needs to perform a change. Before, it always looped through the subfolders until it found one that did not match the compressed state. Now, you can set the
recurse is an option for the (un)compress methods, which get called on the parent directory. The force option changes how much effort the module puts in to deciding if the (un)compress method needs to be called.
To make the case for the extra option, if you're unsure if
If you can think of a better UI, I'm for it. I know the force option is a bit unintuitive. Possibly make the recurse option a string with choices like "top directory only", "apply recursively" and "check recursively".