mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-21 04:32:03 +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
8921d84a91
commit
ca3efa2e7a
1 changed files with 10 additions and 3 deletions
|
@ -1955,8 +1955,11 @@ static SEL swfsSel = 0;
|
||||||
}
|
}
|
||||||
else if ([fileType isEqual: NSFileTypeSymbolicLink])
|
else if ([fileType isEqual: NSFileTypeSymbolicLink])
|
||||||
{
|
{
|
||||||
|
NSString *path;
|
||||||
|
|
||||||
|
path = [self pathContentOfSymbolicLinkAtPath: sourceFile];
|
||||||
if (![self createSymbolicLinkAtPath: destinationFile
|
if (![self createSymbolicLinkAtPath: destinationFile
|
||||||
pathContent: sourceFile])
|
pathContent: path])
|
||||||
{
|
{
|
||||||
if (handler)
|
if (handler)
|
||||||
{
|
{
|
||||||
|
@ -1968,10 +1971,14 @@ static SEL swfsSel = 0;
|
||||||
nil];
|
nil];
|
||||||
if (![handler fileManager: self
|
if (![handler fileManager: self
|
||||||
shouldProceedAfterError: errorInfo])
|
shouldProceedAfterError: errorInfo])
|
||||||
return NO;
|
{
|
||||||
|
return NO;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return NO;
|
{
|
||||||
|
return NO;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue