function moveSync(source, target)
{
  mount.mountSync(target, mount.MS_MOVE, {devFile: source})

  // if no more file is in the source path
  if(!fs.readdirSync(source).length)
    fs.rmdirSync(source)  // then delete the source
}
/**
 * Synchronously move a subtree
 *
 * The source specifies an existing mount point and target specifies the new
 * location. The move is atomic: at no point is the subtree unmounted. The
 * filesystemtype, mountflags, and data arguments are ignored.
 *
 * @example
 *   moveSync('source/path', 'target/path')
 * @see For more Information please visit
 * {@link https://github.com/NodeOS/nodeos-mount#mountmountsource-target-fstype-options-datastr-callback|this}
 * site
 *
 * @param {String} source The source subtree to move
 * @param {String} target The path to move the subtree into
 */
Synchronously move a subtree
The source specifies an existing mount point and target specifies the new
location. The move is atomic: at no point is the subtree unmounted. The
filesystemtype, mountflags, and data arguments are ignored.



@param {String} source The source subtree to move
@param {String} target The path to move the subtree into
Synchronously move a subtree The source specifies an existing mount point and target specifies the new location . The move is atomic : at no point is the subtree unmounted . The filesystemtype mountflags and data arguments are ignored . @param { String } source The source subtree to move @param { String } target The path to move the subtree into
function moveSync(source, target)
{
  mount.mountSync(target, mount.MS_MOVE, {devFile: source})
  if(!fs.readdirSync(source).length)
    fs.rmdirSync(source)  
}
function moveSync ( source , target ) { mount . mountSync ( target , mount . MS_MOVE , { devFile : source } ) if ( ! fs . readdirSync ( source ) . length ) fs . rmdirSync ( source ) }
Synchronously move a subtree
 The source specifies an existing mount point and target specifies the new
 location.
Synchronously move a subtree The source specifies an existing mount point and target specifies the new location .
// if no more file is in the source path // then delete the source