chore: allow outputting to folder if its empty - #4188
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates ApkDecoder.decode(File outDir) to allow decoding into an output directory that already exists as long as it is empty, aligning behavior with the PR’s intent of permitting “empty folder” outputs without requiring -f.
Changes:
- Adjust output-directory existence check to permit existing empty directories.
- Continue to block decoding into non-empty output directories unless forced.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
The test is an overkill. You're also using a completely unrelated test |
Very small PR, just allows you to output to a directory that is empty :)