mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
8e547e4b08
commit
c00c6786ea
1 changed files with 10 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue