Skip to content

TemporaryVault.populate method

TemporaryVault › populate

Writes files and folders into the vault directory. Parent directories are created automatically.

- string values are written as UTF-8 text files. - Uint8Array values (including Buffer) are written as binary files. - Paths ending with / are treated as empty folders (value must be undefined).

Signature:

populate(files: PopulateFilesParams): void

Parameters:

ParameterTypeDescription
filesPopulateFilesParamsMap of file/folder paths to content.

Returns: void