Revision: 18401
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18401&view=rev
Author: hofman
Date: 2012-01-13 13:05:42 +0000 (Fri, 13 Jan 2012)
Log Message:
-----------
only get file attribute when needed
Modified Paths:
--------------
trunk/bibdesk/BDSKFiler.m
Modified: trunk/bibdesk/BDSKFiler.m
===================================================================
--- trunk/bibdesk/BDSKFiler.m 2012-01-13 13:02:54 UTC (rev 18400)
+++ trunk/bibdesk/BDSKFiler.m 2012-01-13 13:05:42 UTC (rev 18401)
@@ -295,13 +295,12 @@
statusFlag = BDSKCannotMoveFileErrorMask;
}
if(statusFlag == BDSKNoError && ignoreMove == NO){
- NSString *fileType = [[self attributesOfItemAtPath:resolvedPath
error:NULL] fileType];
-
// create parent directories if necessary (OmniFoundation)
if (NO == [self createPathToFile:resolvedNewPath attributes:nil]) {
status = NSLocalizedString(@"Unable to create parent directory.",
@"AutoFile error message");
statusFlag = BDSKCannotCreateParentErrorMask;
}else{
+ NSString *fileType = [[self attributesOfItemAtPath:resolvedPath
error:NULL] fileType];
if([fileType isEqualToString:NSFileTypeDirectory] && [[NSWorkspace
sharedWorkspace] isFilePackageAtPath:resolvedPath] == NO && force == NO &&
[[NSUserDefaults standardUserDefaults]
boolForKey:BDSKWarnOnMoveFolderKey]){
NSAlert *alert = [NSAlert
alertWithMessageText:NSLocalizedString(@"Really Move Folder?", @"Message in
alert dialog when trying to auto file a folder")
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit