Fixup copying of symlinks

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13053 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-03-09 12:10:08 +00:00
parent 8e547e4b08
commit c00c6786ea

View file

@ -1955,8 +1955,11 @@ static SEL swfsSel = 0;
}
else if ([fileType isEqual: NSFileTypeSymbolicLink])
{
NSString *path;
path = [self pathContentOfSymbolicLinkAtPath: sourceFile];
if (![self createSymbolicLinkAtPath: destinationFile
pathContent: sourceFile])
pathContent: path])
{
if (handler)
{
@ -1968,10 +1971,14 @@ static SEL swfsSel = 0;
nil];
if (![handler fileManager: self
shouldProceedAfterError: errorInfo])
return NO;
{
return NO;
}
}
else
return NO;
{
return NO;
}
}
}
else