"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

function _bluebird() {
  const data = require("bluebird");

  _bluebird = function () {
    return data;
  };

  return data;
}

function _fsExtra() {
  const data = _interopRequireDefault(require("fs-extra"));

  _fsExtra = function () {
    return data;
  };

  return data;
}

var _default =
/*#__PURE__*/
function () {
  var _isDirEmpty = (0, _bluebird().coroutine)(function* (dirPath) {
    const files = yield _fsExtra().default.readdir(dirPath);
    return !files.length;
  });

  function isDirEmpty(_x) {
    return _isDirEmpty.apply(this, arguments);
  }

  return isDirEmpty;
}();

exports.default = _default;