'use strict';

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

var _fsExtra;

function _load_fsExtra() {
  return _fsExtra = _interopRequireDefault(require('fs-extra'));
}

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function chown(path, uid, gid) {
  return new Promise(function (resolve, reject) {
    (_fsExtra || _load_fsExtra()).default.chown(path, uid, gid, function (err) {
      if (err) return reject(err);
      return resolve();
    });
  });
}