Skip to content

Extract only known GTFS files from ZIP, skip excluded files entirely - #40

Merged
chtitux merged 1 commit into
mainfrom
claude/selective-gtfs-extraction-b7tmR
Mar 8, 2026
Merged

chtitux merged 1 commit into
mainfrom
claude/selective-gtfs-extraction-b7tmR

Conversation

@chtitux

@chtitux chtitux commented Mar 8, 2026

Copy link
Copy Markdown
Contributor

Previously, loadGTFSZip extracted all .txt files from the ZIP archive,
including unrecognized files that would never be used. The skipFiles
option also only prevented loading into the database, not extraction.

Now loadGTFSZip filters against GTFS_FILE_MAPPING during extraction and
accepts a skipFiles parameter to avoid extracting excluded files at all.

https://claude.ai/code/session_011hrgh6BbZURL7ECnKvZTub

Previously, loadGTFSZip extracted all .txt files from the ZIP archive,
including unrecognized files that would never be used. The skipFiles
option also only prevented loading into the database, not extraction.

Now loadGTFSZip filters against GTFS_FILE_MAPPING during extraction and
accepts a skipFiles parameter to avoid extracting excluded files at all.

https://claude.ai/code/session_011hrgh6BbZURL7ECnKvZTub
@chtitux
chtitux force-pushed the claude/selective-gtfs-extraction-b7tmR branch from bfb74c9 to 2156226 Compare March 8, 2026 08:10
@chtitux
chtitux merged commit 757bc70 into main Mar 8, 2026
3 checks passed
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.

2 participants