function Filesystem::linkException
Parameters
string $linkType Name of the link type, typically 'symbolic' or 'hard':
2 calls to Filesystem::linkException()
- Filesystem::hardlink in vendor/
symfony/ filesystem/ Filesystem.php - Creates a hard link, or several hard links to a file.
- Filesystem::symlink in vendor/
symfony/ filesystem/ Filesystem.php - Creates a symbolic link or copy a directory.
File
-
vendor/
symfony/ filesystem/ Filesystem.php, line 395
Class
- Filesystem
- Provides basic utility to manipulate the file system.
Namespace
Symfony\Component\FilesystemCode
private function linkException(string $origin, string $target, string $linkType) : never {
if (self::$lastError) {
if ('\\' === \DIRECTORY_SEPARATOR && str_contains(self::$lastError, 'error code(1314)')) {
throw new IOException(\sprintf('Unable to create "%s" link due to error code 1314: \'A required privilege is not held by the client\'. Do you have the required Administrator-rights?', $linkType), 0, null, $target);
}
}
throw new IOException(\sprintf('Failed to create "%s" link from "%s" to "%s": ', $linkType, $origin, $target) . self::$lastError, 0, null, $target);
}