Description
When installing an addon that contains its files in the top level directory, ie: addon files are directly zipped without a containing folder, an error is raised.
Expected Behavior
When a zipped file immediately contains addon files, it should deposit those files into a containing directory
Actual Behavior
The unzip loop in curseforge.go:145 attempts to loop over files (lua, markdown, etc...) treating them as folders to be deposited in the dest directory. This causes an error to be thrown.
Description
When installing an addon that contains its files in the top level directory, ie: addon files are directly zipped without a containing folder, an error is raised.
Expected Behavior
When a zipped file immediately contains addon files, it should deposit those files into a containing directory
Actual Behavior
The unzip loop in
curseforge.go:145attempts to loop over files (lua, markdown, etc...) treating them as folders to be deposited in thedestdirectory. This causes an error to be thrown.