Name of the file. May include a path. e.g. "textures/123.jpg".
If true the file containes binary data and is returned as ArrayBuffer otherwise as string.
Retrieves an embedded binary or text resource from the document container. If the file doesn't exist the promise will be rejected with an FileNotFoundError.
Name of the file. May include a path. e.g. "textures/123.jpg".
If true the file containes binary data and is returned as ArrayBuffer otherwise as string.
Returns a list of files which are part of the given folder and its sub folders. The files are returned as a relative path including the file name. If the folder doesn't exist the promise will be rejected with an FileNotFoundError.
OptionalpFolderPath: string
Path of the folder.
Can be used to register a task which needs to be finished before the the whole load/save process is finished. Tasks will be processed sequentially.
Retrieves a binary or text file from the container. If the file doesn't exist the promise will be rejected with an FileNotFoundError.