Skip to content

Commit

Permalink
Merge pull request #459 from qlambert-pro/createDirectory
Browse files Browse the repository at this point in the history
Implement message handling for "createDirectory" for webchuck
  • Loading branch information
gewang authored Aug 30, 2024
2 parents 56a35d0 + 52fbfe5 commit 05c77a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/host-web/chucknode-postjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,10 @@ class ChuckNode extends AudioWorkletProcessor
this.Module.FS_createDataFile( '/' + event.data.directory,
event.data.filename, event.data.data, true, true, true );
break;
case 'createDirectory':
this.Module.FS_createPath( '/' + event.data.parent,
event.data.name, true, true );
break;
// ================== Run / Compile ================== //
case 'runChuckCode':
var shredID = runChuckCode( this.myID, event.data.code );
Expand Down

0 comments on commit 05c77a9

Please sign in to comment.