> The value of "archive" holds the full path to the temporary location > But how to I get JUST the value of the folder? (I need to strip out
I figured this one out too: archiveDir = dirGetParent(archive); However, now I've discovered something even MORE annoying. APIs are not actually decompressed to the file system - they're only stored in memory. Now that I've determined what directory the API is in, and also how to execute an external command, how the hell do I do something as simple as copying a file contained in the API to somewhere else? Don't tell me I need to execute an "unzip" command to get the API decompressed to the file system, execute an external copy command, then delete the just unzipped files? I can't believe that this is so complex. Why doesn't Mozilla have built-in support for .jar file handling? It would be *SO* much simpler if I could just have a basic one liner to copy files in the XPI into an existing Mozilla .jar...
