File management

getFileNamesByFolder(folderpath)

A function to return an array of file names along with their ID's in a folder, using the folder's path.

Example:

await fileList = getFileNamesByFolder("Apps/Subfolder/");
await fileItem = getFileById(fileList[0].id);
console.log("File content: " + fileItem.content)

getFileByPath(path)

Returns an object with file name, metadata, ID and type.

getFileById(id, datatype)

Returns an object with file name, metadata, ID, type, path and content.

createFile()

Last updated

Was this helpful?