示例#1
0
 static function cacheSymlink($sTarget, $sSymlink, $sSafeTestRootDirectory, $bUnlinkIfExists = true)
 {
     if (AnwEnv::hasSymLink()) {
         // linux way
         AnwUtils::symlink($sTarget, $sSymlink, $sSafeTestRootDirectory, $bUnlinkIfExists);
     } else {
         // windows way
         // only copy files, we don't need to copy subfolders because they are only read from the cache bygroup
         AnwUtils::copyDirFiles($sTarget, $sSymlink, $bUnlinkIfExists);
     }
 }