mirror of
https://github.com/Codeux-Software/Textual.git
synced 2026-06-16 13:24:32 +00:00
Fix extension pruning
Target correct URL when checking for symbolic link Modify logging to use boolean value
This commit is contained in:
@@ -583,7 +583,7 @@ typedef NS_ENUM(NSUInteger, TPCResourceManagerMigrationInstallation)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
LogToConsoleDebug("Ignoring non-bundle: '%@' - isPackage: %@", name,
|
||||
StringFromBOOL(isPackage));
|
||||
StringFromBOOL(isPackage.boolValue));
|
||||
#endif
|
||||
|
||||
continue;
|
||||
@@ -597,7 +597,7 @@ typedef NS_ENUM(NSUInteger, TPCResourceManagerMigrationInstallation)
|
||||
created is near zero if not zero. This is already over engineered. */
|
||||
BOOL pruned = NO;
|
||||
|
||||
if ([self _fileAtURLIsSymbolicLink:newLocation] == NO) {
|
||||
if ([self _fileAtURLIsSymbolicLink:newExtension] == NO) {
|
||||
NSError *deleteError = nil;
|
||||
|
||||
pruned = [RZFileManager() removeItemAtURL:oldExtension error:&deleteError];
|
||||
|
||||
Reference in New Issue
Block a user