How to use the web-ext-native-msg.removeDirectory function in web-ext-native-msg

To help you get started, we’ve selected a few web-ext-native-msg examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github asamuzaK / withExEditorHost / modules / main.js View on Github external
const initPrivateTmpDir = async bool => {
  if (bool) {
    fileMap[TMP_FILES_PB].clear();
    await removeDirectory(TMPDIR_FILES_PB, TMPDIR);
    await createDirectory(TMPDIR_FILES_PB, PERM_DIR);
  }
};