text: const fs = require('fs');
  const fp = require('fs/promises');
  const path = require('path');
  
  const destinationFolder = 'files-copy'
  const sourceFolder = 'files';
  const soursPath = path.join(__dirname, sourceFolder);
  const destinationPath = path.join(__dirname, destinationFolder);
  
  fs.rm(path.join(__dirname,destinationFolder), {recursive:true, force:true},(err)=>{
      copyDir();
  });
  
  function copyDir(){
      fp.readdir(soursPath, {withFileTypes:true}).then( folderItems => {
          fs.mkdir(destinationPath, {recursive:true} ,(err)=>{
              if (err) {
                  console.log(err);
              } else {
                  folderItems.forEach((item) =>{
                      fp.copyFile(path.join(soursPath, item.name),
                                  path.join(destinationPath, item.name));
                  })
              }
          })
      })
  };