Hello,
When I use the module "File Write Text File" (it's a native script), I connect the "folder" inlet to a custom path name which is "dynamic" (it depends on the date). But I noticed that since the folder does not exist, the script cannot create a text file accordingly.
Is there a way to create the right folder at the right path (defined by the "folder" inlet) before creating the text file, please?
By the way, I take advantage of this thread to ask you if there is a way to enter a simple "space" character in a concat string inlet? (in the meantime I use an underscore character but it's not convenient). More generally, out of curiosity, what about other Unicode characters?
Thanks,
creal.
Create folder via the script "File Write Text File"
- senso
- Site Admin
- Posts: 4434
- Location: France
- Contact:
hello,
you can use the procedure
to create a directory as referenced in https://www.brainmodular.com/manuals/hh4/en/scripting
The best way to have a 'space' in the concat module is to connect a constant module with the value 32. It's the ascii code for 'space'.
senso
you can use the procedure
Code: Select all
procedure CreateDir(dir:String);The best way to have a 'space' in the concat module is to connect a constant module with the value 32. It's the ascii code for 'space'.
senso
Olivier Sens
www.brainmodular.com
www.brainmodular.com
