Revision: 28309
http://sourceforge.net/p/bibdesk/svn/28309
Author: hofman
Date: 2023-07-13 14:24:46 +0000 (Thu, 13 Jul 2023)
Log Message:
-----------
always remove temporary folder for archive
Modified Paths:
--------------
trunk/bibdesk/BibDocument.m
Modified: trunk/bibdesk/BibDocument.m
===================================================================
--- trunk/bibdesk/BibDocument.m 2023-07-05 09:01:16 UTC (rev 28308)
+++ trunk/bibdesk/BibDocument.m 2023-07-13 14:24:46 UTC (rev 28309)
@@ -1264,10 +1264,10 @@
NSWorkspace *ws = [NSWorkspace sharedWorkspace];
NSString *filePath;
NSString *commonParent = nil;
- BOOL success = YES;
NSMutableSet *localFiles = [NSMutableSet set];
+ BOOL success = [fm createDirectoryAtURL:folderURL
withIntermediateDirectories:NO attributes:nil error:NULL];
- if ((success = [fm createDirectoryAtURL:folderURL
withIntermediateDirectories:NO attributes:nil error:NULL])) {
+ if (success) {
for (BibItem *item in [self publicationsForSaving]) {
for (BDSKLinkedFile *file in [item localFiles]) {
if ((filePath = [file path]) && [fm fileExistsAtPath:filePath]
&& [ws isFolderAtPath:filePath] == NO) {
@@ -1306,8 +1306,9 @@
@catch (id e) {}
[task waitUntilExit];
success = [task terminationStatus] == 0;
- [fm removeItemAtURL:folderURL error:NULL];
}
+
+ [fm removeItemAtURL:folderURL error:NULL];
}
return success;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit