@@ -755,16 +755,10 @@ if (source == nil || destination == nil) @throw [OFInvalidArgumentException exception]; pool = objc_autoreleasePoolPush(); - if ([self directoryExistsAtPath: destination]) { - OFArray *components = [OFArray arrayWithObjects: - destination, [source lastPathComponent], nil]; - destination = [OFString pathWithComponents: components]; - } - if (link([source cStringWithEncoding: OF_STRING_ENCODING_NATIVE], [destination cStringWithEncoding: OF_STRING_ENCODING_NATIVE]) != 0) @throw [OFLinkFailedException exceptionWithSourcePath: source destinationPath: destination]; @@ -782,16 +776,10 @@ if (source == nil || destination == nil) @throw [OFInvalidArgumentException exception]; pool = objc_autoreleasePoolPush(); - if ([self directoryExistsAtPath: destination]) { - OFArray *components = [OFArray arrayWithObjects: - destination, [source lastPathComponent], nil]; - destination = [OFString pathWithComponents: components]; - } - if (symlink([source cStringWithEncoding: OF_STRING_ENCODING_NATIVE], [destination cStringWithEncoding: OF_STRING_ENCODING_NATIVE]) != 0) @throw [OFCreateSymbolicLinkFailedException exceptionWithSourcePath: source destinationPath: destination];