ngth > 0) {
          const err = new Error(`ENOTEMPTY: directory not empty, rmdir '${dirpath}'`)
          err.code = 'ENOTEMPTY'
          err.errno = -39
          throw err
        }
        this.entries.delete(dirPath)
        this.modified.add(dirPath)
      }

      async exportZip() {
        const zipWriter = new zip.ZipWriter(new zip.BlobWriter())

        for (const [filename, entry] of this.entries) {
          if (entry.directory) {
            continue // Skip directories for now
          } e