Skip to main content

parse-zip-folder

Documentation / lib/components/Editor/docx/parse-zip-folder

getFilesInFolder()​

function getFilesInFolder(dir: string, files: string[]): string[];

Defined in: web-app/src/lib/components/Editor/docx/parse-zip-folder.js:43

Get all files in folder and subfolders as file paths array

Parameters​

ParameterTypeDefault valueDescription

dir

string

undefined

the directory to browse for files

files

string[]

[]

(omit this param, used for recursion)

Returns​

string[]

files array of file paths


handleZipOfDocx()​

function handleZipOfDocx(zipPath: any, outputFolder: any): string[];

Defined in: web-app/src/lib/components/Editor/docx/parse-zip-folder.js:10

Get all docx in zip as file paths array and process data

Parameters​

ParameterType

zipPath

any

outputFolder

any

Returns​

string[]

files array of file paths