Method “createTextFile”
function createTextFile(target, sub_path, contents)
Creates a new text file within the specified target container
Parameters
| Name | Type | Description |
|---|---|---|
target | object | Target container of type EventNode or ShoeBoxFolderNode |
sub_path | string | The relative path of the new file within the target container |
contents | string | The contents to write into the file |
Return Value
Returns the FileNode object corresponding to the new file.