'use strict';

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

var _fs;

function _load_fs() {
  return _fs = _interopRequireDefault(require('fs'));
}

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

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