[mkbundle] Don't use Path.GetDirectoryName on `directory` (#4130)
authorJo Shields <directhex@apebox.org>
Tue, 20 Dec 2016 19:02:09 +0000 (19:02 +0000)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 20 Dec 2016 19:02:09 +0000 (20:02 +0100)
commit031d79c2c4ed70ee9675c53fab676a2ddaca0922
tree1bdd344bc54c9544e5f009b76e5608f78e813c55
parentec228cf9a4dfc205624c5d5d94c6ad5234aa0290
[mkbundle] Don't use Path.GetDirectoryName on `directory` (#4130)

`directory` is already a directory. It's in the name.

`Path.GetDirectoryName ("/path/to/a/thing")` returns `"/path/to/a"`, whether
`thing` is a directory or not. If there's a trailing `/` then it returns
the directory, not the parent - but we don't have a trailing `/`.

This fixes an issue where the path needs to be created by hand before an
SDK can be downloaded.
mcs/tools/mkbundle/mkbundle.cs