Revision: 22797 http://sourceforge.net/p/bibdesk/svn/22797 Author: hofman Date: 2018-10-11 13:26:28 +0000 (Thu, 11 Oct 2018) Log Message: ----------- resolve base path for relative path commands
Modified Paths: -------------- trunk/bibdesk/BDSKFileURLCommand.m Modified: trunk/bibdesk/BDSKFileURLCommand.m =================================================================== --- trunk/bibdesk/BDSKFileURLCommand.m 2018-10-11 13:24:27 UTC (rev 22796) +++ trunk/bibdesk/BDSKFileURLCommand.m 2018-10-11 13:26:28 UTC (rev 22797) @@ -77,6 +77,7 @@ return nil; } BOOL isDir = YES; + baseURL = [baseURL URLByStandardizingPath]; if ([[NSFileManager defaultManager] fileExistsAtPath:[baseURL path] isDirectory:&isDir] && isDir == NO) baseURL = [baseURL URLByDeletingLastPathComponent]; return [[fileURL path] relativePathFromPath:[baseURL path]]; @@ -101,6 +102,7 @@ if ([relativePath isAbsolutePath]) return [NSURL fileURLWithPath:relativePath]; BOOL isDir = YES; + baseURL = [baseURL URLByStandardizingPath]; if ([[NSFileManager defaultManager] fileExistsAtPath:[baseURL path] isDirectory:&isDir] && isDir == NO) baseURL = [baseURL URLByDeletingLastPathComponent]; return [[baseURL URLByAppendingPathComponent:relativePath] URLByStandardizingPath]; 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