Repository navigation
Fix Zip Folders' reversed series order and empty log files - #5
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t in them Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two fixes.
Zip Folders worked through series in reverse. The folder scan pushed every subfolder onto a stack and popped them last-in, first-out, so series came out Z to A (chapters inside a series were in order). It now keeps one open enumerator per folder level and walks each subfolder to its end before the next one, the same way the series scan for the other modes does. Series, volumes and chapters come out in the order the file system lists them, which is alphabetical on NTFS.
The Errors and Warnings logs were created on every run, even a clean one. The run header was written to both files up front. It's now written together with the run's first line in that file, so a run with nothing to report creates no file and leaves an existing one alone. If that first write fails, the header goes in with the next line that does get written.
Tests:
Not changed: volumes inside a series are still listed in reverse in the other three modes, which use a separate scan.
🤖 Generated with Claude Code