How to specify folder when creating new file?
jawon last edited by
Is there any way to specify the folder you want Editorial to create a new file within other than the current folder?
I am comfortable with python, but haven't used it yet within editorial. Hit me with any code that works for you.
Jozh last edited by
editor.set_file_contents(name, new_contents[, root])
Writes new data to the file with the given name (a relative path). If a file with this name exists, it is overwritten.
Note that new_contents is a byte string, which means that you can also use this to write binary files (such as images), but if you write non-ASCII text, you have to encode it yourself.
root can be either ‘local’ or ‘dropbox’. ‘local’ is the default.