Working with the filesystem
If you need to create a file (e.g. creating XML feeds) or to work with the filesystem, you should use our .saveOutput() function.
import { functions } from "@xomlo/xomlo-sdk";
functions.main(async () => {
await functions.storage.saveOutput('test.txt', 'test');
});Function .saveOutput() expects two parameters - the name of the created file and content. This example will store the test.txt file into the ./output folder which will contain the following string: test.
Last updated
Was this helpful?