ccrma / webchuck

ChucK on the Web
https://chuck.stanford.edu/webchuck
MIT License
42 stars 8 forks source link

Support automatic creation of directories when preloading files. #43

Closed qlambert-pro closed 1 week ago

qlambert-pro commented 1 month ago

The init method could parse the virtualFilename and create the necessary directories.

When giving the following as filenamesToPreload argument.

[{serverFilename: "./path/filename.wav", virtualFilename: "other/path/filename.wav"}]

The resulting file system would look like:

\
├─ other
│  ├─ path
│  │  ├─ filename.wav