ZipStuff
Handles all things zip. Unzips and assembles zip files.
Procs
proc assembleDocumentFile(outputDocument: string = "document.out.docx") {. ...raises: [OSError, IOError], tags: [], forbids: [].}
- Assembles the .docx file from the temporary directory
proc createTempDir() {....raises: TempDirCreationError, tags: [ReadDirEffect, WriteDirEffect], forbids: [].}
- Creates a temporary directory
proc deleteTempDir() {....raises: TempDirAccessError, tags: [ReadDirEffect, WriteDirEffect], forbids: [].}
- Deletes the temporary directory along with its contents
proc unzipToTempDir(filepath: string) {....raises: [ZipUnzipError, IOError, TempDirAccessError, TempDirCreationError], tags: [ReadDirEffect, WriteDirEffect], forbids: [].}
- Unzips the .docx file to temporary directory