Skip to content

Commit

Permalink
Implement message handling for "createDirectory".
Browse files Browse the repository at this point in the history
  • Loading branch information
qlambert-pro committed Aug 21, 2024
1 parent 56a35d0 commit 52fbfe5
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 52fbfe5

Please sign in to comment.