$fn.putFile(path, parameters)
Saves the file to the specified path. "asynchronous"
Arguments
Name | Type | Description |
---|---|---|
path | string | Path of the file to save |
parameters | object | data: Buffer | Unit8Array | Objects with string as a property |
Return value
None
Sample
try { const obj = await $fn.getFile("/note.dat"); await $fn.putFile('filePath', obj); } catch (err) { console.log("Error", err); }