function moveAction(command, options) {
  var verbose = options.verbose;
  var silent = options.silent;


  if (!command.source || !command.destination) {
    if (verbose) {
      console.log('  - FileManagerPlugin: Warning - move parameter has to be formated as follows: { source: <string>, destination: <string> }');
    }
    return null;
  }

  if (fs$1.existsSync(command.source)) {
    return function () {
      return new Promise(function (resolve, reject) {
        if (verbose) {
          console.log('  - FileManagerPlugin: Start move source: ' + command.source + ' to destination: ' + command.destination);
        }

        mv(command.source, command.destination, { mkdirp: false }, function (err) {
          if (err) {
            if (verbose) {
              console.log('  - FileManagerPlugin: Error - move failed', err);
            }
            reject(err);
          }

          if (verbose) {
            console.log('  - FileManagerPlugin: Finished move source: ' + command.source + ' to destination: ' + command.destination);
          }

          resolve();
        });
      });
    };
  } else {
	  if (!silent) {
		process.emitWarning('  - FileManagerPlugin: Could not move ' + command.source + ': path does not exist');
	  }

    return null;
  }
}
/**
 * Execute move action
 *
 * @param {Object} command - Command data for given action
 * @return {Function|null} - Function that returns a promise or null
 */
Execute move action
@param {Object} command - Command data for given action
@return {Function|null} - Function that returns a promise or null
Execute move action @param { Object } command - Command data for given action @return { Function|null } - Function that returns a promise or null
function moveAction(command, options) {
  var verbose = options.verbose;
  var silent = options.silent;
  if (!command.source || !command.destination) {
    if (verbose) {
      console.log('  - FileManagerPlugin: Warning - move parameter has to be formated as follows: { source: <string>, destination: <string> }');
    }
    return null;
  }
  if (fs$1.existsSync(command.source)) {
    return function () {
      return new Promise(function (resolve, reject) {
        if (verbose) {
          console.log('  - FileManagerPlugin: Start move source: ' + command.source + ' to destination: ' + command.destination);
        }
        mv(command.source, command.destination, { mkdirp: false }, function (err) {
          if (err) {
            if (verbose) {
              console.log('  - FileManagerPlugin: Error - move failed', err);
            }
            reject(err);
          }
          if (verbose) {
            console.log('  - FileManagerPlugin: Finished move source: ' + command.source + ' to destination: ' + command.destination);
          }
          resolve();
        });
      });
    };
  } else {
	  if (!silent) {
		process.emitWarning('  - FileManagerPlugin: Could not move ' + command.source + ': path does not exist');
	  }
    return null;
  }
}
function moveAction ( command , options ) { var verbose = options . verbose ; var silent = options . silent ; if ( ! command . source || ! command . destination ) { if ( verbose ) { console . log ( '  - FileManagerPlugin: Warning - move parameter has to be formated as follows: { source: <string>, destination: <string> }' ) ; } return null ; } if ( fs$1 . existsSync ( command . source ) ) { return function ( ) { return new Promise ( function ( resolve , reject ) { if ( verbose ) { console . log ( '  - FileManagerPlugin: Start move source: ' + command . source + ' to destination: ' + command . destination ) ; } mv ( command . source , command . destination , { mkdirp : false } , function ( err ) { if ( err ) { if ( verbose ) { console . log ( '  - FileManagerPlugin: Error - move failed' , err ) ; } reject ( err ) ; } if ( verbose ) { console . log ( '  - FileManagerPlugin: Finished move source: ' + command . source + ' to destination: ' + command . destination ) ; } resolve ( ) ; } ) ; } ) ; } ; } else { if ( ! silent ) { process . emitWarning ( '  - FileManagerPlugin: Could not move ' + command . source + ': path does not exist' ) ; } return null ; } }
Execute move action
 @param {Object} command - Command data for given action
 @return {Function|null} - Function that returns a promise or null
Execute move action @param { Object } command - Command data for given action @return { Function|null } - Function that returns a promise or null