Skip to content

Fix: skip if compressed >= original + only delete if new file was ok#36

Open
vHeemstra wants to merge 1 commit into
vbenjs:mainfrom
vHeemstra:patch-1
Open

Fix: skip if compressed >= original + only delete if new file was ok#36
vHeemstra wants to merge 1 commit into
vbenjs:mainfrom
vHeemstra:patch-1

Conversation

@vHeemstra

Copy link
Copy Markdown
  • Only save compressed content if it is smaller than the original (this might need a extra config option, but is a sensible default).
  • Only delete the original file if compression and the saving of the compressed file were successful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant