vmware-archive / spring-cloud-dataflow-for-pcf-cli-plugin

A Cloud Foundry CLI plugin for Spring Cloud Dataflow for PCF
Apache License 2.0
1 stars 6 forks source link

Improve error handling and properly parse URL on Windows #15

Closed dmikusa closed 4 years ago

dmikusa commented 4 years ago

Two bug fixes:

  1. Properly handle the case when there is an error calling os.Stat and it's not a error because the file doesn't exist (it may be good to log this error some how, but I'm not sure the best way to do that so I left it out).

  2. Properly parse the URL on Windows. On Windows, os.PathSeparator will be \. There are no \ characters in a URL, so parsing would fail and the created path would be weird and contain invalid characters on Windows. This will parse always using a /, so it should work on both Unix & Windows.

dmikusa commented 4 years ago

@csterwa