本文整理匯總了PHP中pts_file_io::symlink方法的典型用法代碼示例。如果您正苦於以下問題:PHP pts_file_io::symlink方法的具體用法?PHP pts_file_io::symlink怎麽用?PHP pts_file_io::symlink使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類pts_file_io
的用法示例。
在下文中一共展示了pts_file_io::symlink方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: setup_test_install_directory
protected static function setup_test_install_directory(&$test_install_request, $remove_old_files = false)
{
$identifier = $test_install_request->test_profile->get_identifier();
pts_file_io::mkdir($test_install_request->test_profile->get_install_dir());
if ($remove_old_files) {
// Remove any (old) files that were installed
$ignore_files = array('pts-install.xml', 'install-failed.log');
foreach ($test_install_request->get_download_objects() as $download_object) {
$ignore_files[] = $download_object->get_filename();
}
pts_file_io::delete($test_install_request->test_profile->get_install_dir(), $ignore_files);
}
pts_file_io::symlink(pts_core::user_home_directory() . '.Xauthority', $test_install_request->test_profile->get_install_dir() . '.Xauthority');
pts_file_io::symlink(pts_core::user_home_directory() . '.drirc', $test_install_request->test_profile->get_install_dir() . '.drirc');
}