Skip to content

fix: #25 create parent directory for unnested addon zip entries - #30

Open
kelzcoded wants to merge 1 commit into
m-triassi:mainfrom
kelzcoded:fix/25-unnested-addon-install
Open

fix: #25 create parent directory for unnested addon zip entries#30
kelzcoded wants to merge 1 commit into
m-triassi:mainfrom
kelzcoded:fix/25-unnested-addon-install

Conversation

@kelzcoded

Copy link
Copy Markdown

Closes #25

Fixes InstallAddon failing on "unnested" addon zips by creating a parent directory before writing any files if one doesn't exist.

Manually verified against a real addon zip (stripped the directory to reproduce the "unnested"/flat case). Also adds a test with a flat zip file and a "normal" one.

 m-triassi#25)

Flat/unnested addon zips omit explicit directory entries for nested
paths, so os.Create() failed on the target file because its parent
directory was never created. MkdirAll the parent before creating the
file.
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.

Curseforge install fails to create directory when addon is unnested

1 participant