private function copyFromTo($from, $to)
    {
        $directory = dirname($to);
        if (!is_dir($directory)) {
            mkdir($directory, 0777, true);
        }

        copy($from, $to);
    }
private function copyFromTo($from, $to)
    {
        $directory = dirname($to);
        if (!is_dir($directory)) {
            mkdir($directory, 0777, true);
        }

        copy($from, $to);
    }
private function copyFromTo ( $ from , $ to ) { $ directory = dirname ( $ to ) ; if ( ! is_dir ( $ directory ) ) { mkdir ( $ directory , 0777 , true ) ; } copy ( $ from , $ to ) ; }
Copies a single asset from a path to a path.

@param string $from The location to copy from.
@param string $to The location to copy to.
Copies a single asset from a path to a path .