Ha Ha, I don't know if I'm much help here, as I too have the same problem. (I'm using JXA, which makes it even more confusing, as the Hype example scripts are in Python.)
Yet, I took a look at it this morning. I just (yesterday) learned how to write files with JXA, but I'm not sure how to create directories yet. And since you're probably not using JXA, maybe this is a solution...
It’d be useful to know if there was a particular spec you had on the final structure.
Hype 3.6’s Export Scripts do have the ability to place resources in different paths/subpaths. This is done in the replace_url call. There’s actually an example of putting items in js, img, and misc folders in the SampleExportScript. The code there looks like:
If you are working with Sizmek then I believe you need it. I have a vague recollection of testing to see if it could be avoided since it is small and could be inlined, but I think the ad was rejected from Sizmek. However my memory could be faulty .
If you aren’t dealing with Sizmek you should not use it, but you also probably shouldn’t be starting from the Sizmek export script as that has many sizmek-isms!