code: private static function createCopy(
          string $from,
          string $fromFilename,
          string $to,
          string $toFilename
      ) {
          if (file_exists("$to/$toFilename")) {
              unlink("$to/$toFilename");
          }
  
          copy(
              realpath($from)."/$fromFilename",
              realpath($to)."/$toFilename"
          );
  
          echo '> * Copy origin - '.realpath($from)."/$toFilename".PHP_EOL;
          echo '> * Copy destination - '.realpath($to)."/$toFilename".PHP_EOL;
      }
docs: Make a copy of a file, from a folder, into a folder.
  
  @param string $from
  @param string $fromFilename
  @param string $to
  @param string $toFilename