How to use the hexo-fs.rmdir function in hexo-fs

To help you get started, we’ve selected a few hexo-fs 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 hexojs / hexo-cli / test / scripts / find_pkg.js View on Github external
after(function() {
    return fs.rmdir(baseDir);
  });
github hexojs / hexo / test / scripts / processors / asset.js View on Github external
}).finally(() => {
      fs.unlink(file.source);
      fs.rmdir(pathFn.dirname(file.source));
    });
  });
github hexojs / hexo-cli / test / scripts / init.js View on Github external
function rmdir(path) {
    return fs.rmdir(path).catch(err => {
      if (err.cause && err.cause.code === 'ENOENT') return;
      throw err;
    });
  }