dir::copy($dir, $to)

Copy a file, or recursively copy a folder and its contents

  • $dir (string)
    Source path
  • $to (string)
    Destination path