Method “createTextFile”

function createTextFile(target, sub_path, contents)

Creates a new text file within the specified target container

Parameters

NameTypeDescription
targetobjectTarget container of type EventNode or ShoeBoxFolderNode
sub_pathstringThe relative path of the new file within the target container
contentsstringThe contents to write into the file

Return Value

Returns the FileNode object corresponding to the new file.