createIfNotExists.js 205 B

1234567891011121314
  1. /*
  2. Recorder WebApp
  3. Create save target folder if it doesn't exists
  4. Require: savedir
  5. */
  6. requirelib("filelib")
  7. if (!filelib.fileExists(savedir)){
  8. filelib.mkdir(savedir);
  9. }
  10. sendResp("OK");