ディレクトリ全体とその内容をコピーすることを想定している以下の関数に問題があります.opendir行は毎回Unable to Openを返しますが、その理由はわかりません. ソースは存在し、755 のアクセス許可があります (757 のアクセス許可で試してみましたが、まだ運がありません!)。
誰でも何か提案できますか?
function copydir($source,$destination)
{
    if(!is_dir($destination))
    {
        $oldumask = umask(0); 
        mkdir($destination, 0757); // so you get the sticky bit set 
        umask($oldumask);
    }
    $dir_handle = @opendir($source) or die("Unable to open");
    while ($file = readdir($dir_handle)) 
    {
        if($file!="." && $file!=".." && !is_dir("$source/$file")) //if it is file
        {
            copy("$source/$file","$destination/$file");
        }
        if($file!="." && $file!=".." && is_dir("$source/$file")) //if it is folder
        {
            copydir("$source/$file","$destination/$file");
        }
    }
    closedir($dir_handle);
}