When dealing with package zips from GitHub (fifthtry.github.io/package-doc), the zip file structure includes a top-level folder named package-doc-<commit-id> which contains all the files. Therefore, the path for FASTN.ftd becomes package-doc-<commit-id>/FASTN.ftd. On the other hand, zips from FifthTry packages do not have such a top-level folder, so the path for FASTN.ftd is simply FASTN.ftd.
This PR added logic to handle path differences between GitHub and FifthTry package zips.
When dealing with package zips from GitHub (
fifthtry.github.io/package-doc
), the zip file structure includes a top-level folder namedpackage-doc-<commit-id>
which contains all the files. Therefore, the path forFASTN.ftd
becomespackage-doc-<commit-id>/FASTN.ftd
. On the other hand, zips from FifthTry packages do not have such a top-level folder, so the path forFASTN.ftd
is simplyFASTN.ftd
.This PR added logic to handle path differences between GitHub and FifthTry package zips.