src/index.js
async function move(src, dest) {
  const files = await fs.readdir(src);

  for (const file of files) {
    await fs.move(path.join(src, file), path.join(dest, file), {
      overwrite: true
    });
  }

  await fs.rmdir(src);
}
async function move(src, dest) {
  const files = await fs.readdir(src);

  for (const file of files) {
    await fs.move(path.join(src, file), path.join(dest, file), {
      overwrite: true
    });
  }

  await fs.rmdir(src);
}
async function move ( src , dest ) { const files = await fs . readdir ( src ) ; for ( const file of files ) { await fs . move ( path . join ( src , file ) , path . join ( dest , file ) , { overwrite : true } ) ; } await fs . rmdir ( src ) ; }
Move files from src directory to dest directory (not recursive). fs-extra's fs.move() method was failing when called on the src directory, so we move files directly.
Move files from src directory to dest directory ( not recursive ) . fs - extra s fs . move () method was failing when called on the src directory so we move files directly .