Revision: 28883 http://sourceforge.net/p/bibdesk/svn/28883 Author: hofman Date: 2024-04-30 23:14:47 +0000 (Tue, 30 Apr 2024) Log Message: ----------- we can assume app support file target is directory if source is a directory
Modified Paths: -------------- trunk/bibdesk/NSFileManager_BDSKExtensions.m Modified: trunk/bibdesk/NSFileManager_BDSKExtensions.m =================================================================== --- trunk/bibdesk/NSFileManager_BDSKExtensions.m 2024-04-30 21:57:29 UTC (rev 28882) +++ trunk/bibdesk/NSFileManager_BDSKExtensions.m 2024-04-30 23:14:47 UTC (rev 28883) @@ -193,7 +193,7 @@ NSURL *sourceURL = [[[NSBundle mainBundle] sharedSupportURL] URLByAppendingPathComponent:fileName isDirectory:NO]; BOOL isDir = NO; if ([self fileExistsAtPath:[sourceURL path] isDirectory:&isDir]) { - NSURL *targetURL = [[self applicationSupportDirectoryURL] URLByAppendingPathComponent:fileName isDirectory:NO]; + NSURL *targetURL = [[self applicationSupportDirectoryURL] URLByAppendingPathComponent:fileName isDirectory:isDir]; if (isDir) { if ([self fileExistsAtPath:[targetURL path] isDirectory:&isDir] == NO) isDir = [self createDirectoryAtURL:targetURL withIntermediateDirectories:NO attributes:nil error:NULL]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit