function copyAsUser($from, $to)
    {
        copy($from, $to);

        $this->chown($to, user());
    }
function copyAsUser($from, $to)
    {
        copy($from, $to);

        $this->chown($to, user());
    }
function copyAsUser ( $ from , $ to ) { copy ( $ from , $ to ) ; $ this -> chown ( $ to , user ( ) ) ; }
Copy the given file to a new location for the non-root user.

@param  string  $from
@param  string  $to
@return void
Copy the given file to a new location for the non - root user .