Maybe this is a not-so-bright question - but can SuperCollider create a new folder on one’s desktop? It doesn’t seem to do it automatically, when specifying a directory that does not exist… but I thought maybe someone here might’ve worked around it at some point. Thanks!
Yes: File.mkdir
.
File.mkdir("~/Desktop/NewFolder".standardizePath)
That creates one level of a new folder. The help notes that you can create new folders several levels deep by calling mkdir once for the lowest level child folder.
hjh
1 Like
One small addition:
The new folder should be outside the OS-protected folders.
For example, sclang cannot create a folder inside Platform.resourceDir
on Windows and Linux if sclang is installed in the default location.
2 Likes