Skip to content

Feature request: skip if compressed content is larger than original #35

@vHeemstra

Description

@vHeemstra

Add something like:

if (size >= oldSize) {
  return
}

at:

To avoid deleting the original file if it will be skipped because of compressed size being larger, move these lines:

if (deleteOriginFile) {
fs.remove(filePath)
}

after the suggested check code above.

See #36 for fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions