Proposal : forbid subfolders in GTFS files

38 views
Skip to first unread message

Thibaut Barrère

unread,
May 23, 2023, 10:33:25 AM5/23/23
to GTFS Changes
Hello,

While working on GTFS aggregation (~400 files), I found that ~5% of them had data in subfolders, which make it harder to ingest them.

At https://github.com/google/transit/issues/377 I have opened a bit of discussion around that, and the feedback has been positive, so I created this PR: https://github.com/google/transit/pull/379

Posting this here after Leonard Ehrenfried explained that it must be done that way for votes to happen.

Thanks,

-- Thibaut

Elias Gino Cripotos

unread,
May 23, 2023, 3:19:36 PM5/23/23
to GTFS Changes
Thank you for posting this here Thibaut! 

Mark Stosberg

unread,
May 25, 2023, 11:01:31 AM5/25/23
to GTFS Changes
I'm in favor of this proposal. What I've been doing is to pre-filter all GTFS files I ingest to unpack them and then re-zip them flattened. 

For `zip` CLI tool, there's a `--junk-paths` flag that does this. Tools and docs that help with creating GTFS files could easily use tooling like that make sure the zip file structure is flattened.

Reply all
Reply to author
Forward
0 new messages