function mkdirMove(source, target, callback)
{
  // create target directory
  mkdir(target, function(error)
  {
    if(error) return callback(error)

    // move all the files to the target
    move(source, target, callback)
  })
}
/**
 * Asynchronously create a target directory mount the source with MS_MOVE to it
 * and move all files to the newly created directory
 *
 * @example
 *   mkdirMove('source/path', 'target/path', function(err) {})
 *
 * @param {String}   source   The source subtree to move
 * @param {String}   target   The path to move the subtree into
 * @param {Function} callback Function called after the mount operation finishes.
 *                            Receives only one argument err.
 */
Asynchronously create a target directory mount the source with MS_MOVE to it
and move all files to the newly created directory

@example
mkdirMove('source/path', 'target/path', function(err) {})

@param {String}   source   The source subtree to move
@param {String}   target   The path to move the subtree into
@param {Function} callback Function called after the mount operation finishes.
Receives only one argument err.
Asynchronously create a target directory mount the source with MS_MOVE to it and move all files to the newly created directory @example mkdirMove ( ' source / path ' ' target / path ' function ( err ) {} ) @param { String } source The source subtree to move @param { String } target The path to move the subtree into @param { Function } callback Function called after the mount operation finishes . Receives only one argument err .
function mkdirMove(source, target, callback)
{
  mkdir(target, function(error)
  {
    if(error) return callback(error)
    move(source, target, callback)
  })
}
function mkdirMove ( source , target , callback ) { mkdir ( target , function ( error ) { if ( error ) return callback ( error ) move ( source , target , callback ) } ) }
Asynchronously create a target directory mount the source with MS_MOVE to it
 and move all files to the newly created directory
Asynchronously create a target directory mount the source with MS_MOVE to it and move all files to the newly created directory
// create target directory // move all the files to the target