Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output mistaken as directory if extension is ".ZIP" #118

Open
disambiguator opened this issue Aug 28, 2019 · 0 comments
Open

Output mistaken as directory if extension is ".ZIP" #118

disambiguator opened this issue Aug 28, 2019 · 0 comments

Comments

@disambiguator
Copy link

disambiguator commented Aug 28, 2019

Summary:

When providing an output path with a capital ".ZIP" extension, instead of lowercase, onebusaway-gtfs-transformer-cli.jar treats the output as a directory instead of a zip file.

Steps to reproduce:

java -jar onebusaway-gtfs-transformer-cli.jar --transform=modifications.txt source-gtfs.zip target-gtfs.ZIP

Expected behavior:

Creates an output zip file with gtfs

Observed behavior:

Creates an output directory called target-gtfs.ZIP

Platform:

macOS 10.14.6
openjdk 12.0.2 2019-07-16
OpenJDK Runtime Environment (build 12.0.2+10)
OpenJDK 64-Bit Server VM (build 12.0.2+10, mixed mode, sharing)
onebusaway-gtfs-transformer-cli-1.3.4-20150503.062227-12.jar

From skimming, the issue seems to be because of this line:

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

No branches or pull requests

1 participant