Tabnine Logo For Javascript
emptyDir
Code IndexAdd Tabnine to your IDE (free)

How to use
emptyDir
function
in
empty-dir

Best JavaScript code snippets using empty-dir.emptyDir(Showing top 2 results out of 315)

origin: ModClean/modclean

/**
   * Finds all empty directories within `options.cwd`.
   * @private
   * @param  {Function} cb Callback to call once complete.
   */
  _findEmptyDirs(cb) {
    let self = this,
      results = [];

    subdirs(this.options.cwd, function(err, dirs) {
      if(err) self.utils.error(err, '_findEmptyDirs');
      if(err || !Array.isArray(dirs)) return cb(err, []);

      each(dirs, (dir, dCb) => {
        emptyDir(dir, self.options.emptyDirFilter || function() { return true; }, (err, isEmpty) => {
          if(err) self.utils.error(err, '_findEmptyDirs');
          if(err || !isEmpty) return dCb();
          results.push(dir);
          dCb();
        });
      }, (err) => {
        self.emit('emptyDirs', results);
        cb(err, results);
      });
    });
  }
origin: vidaxl-com/cowlog

    mkdirp(fixturePath)
   if (emptyDir(fixturePath)) {
    throw String(`Please put some files to the ${fixturePath} directory,
you might not want to test with no files right?`)
empty-dir(npm)emptyDir

Most used empty-dir functions

    Popular in JavaScript

    • mkdirp
      Recursively mkdir, like `mkdir -p`
    • handlebars
      Handlebars provides the power necessary to let you build semantic templates effectively with no frustration
    • postcss
    • fs
    • moment
      Parse, validate, manipulate, and display dates
    • rimraf
      A deep deletion module for node (like `rm -rf`)
    • cheerio
      Tiny, fast, and elegant implementation of core jQuery designed specifically for the server
    • through2
      A tiny wrapper around Node.js streams.Transform (Streams2/3) to avoid explicit subclassing noise
    • ms
      Tiny millisecond conversion utility
    • Top 12 Jupyter Notebook extensions
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJavascript Code Index
    Get Tabnine for your IDE now