Revision: 7735
http://skim-app.svn.sourceforge.net/skim-app/?rev=7735&view=rev
Author: hofman
Date: 2012-10-19 15:04:34 +0000 (Fri, 19 Oct 2012)
Log Message:
-----------
don't use subpathsAtPath
Modified Paths:
--------------
trunk/SKInfoWindowController.m
trunk/SKTemplateManager.m
Modified: trunk/SKInfoWindowController.m
===================================================================
--- trunk/SKInfoWindowController.m 2012-10-19 11:15:06 UTC (rev 7734)
+++ trunk/SKInfoWindowController.m 2012-10-19 15:04:34 UTC (rev 7735)
@@ -198,7 +198,7 @@
NSString *path = [fileURL path];
unsigned long long componentSize;
unsigned long long logicalComponentSize;
- for (NSString *file in [[NSFileManager defaultManager]
subpathsAtPath:path]) {
+ for (NSString *file in [[NSFileManager defaultManager]
subpathsOfDirectoryAtPath:path error:NULL]) {
SKFileSizeStringForFileURL([NSURL fileURLWithPath:[path
stringByAppendingPathComponent:file]], &componentSize, &logicalComponentSize);
size += componentSize;
logicalSize += logicalComponentSize;
Modified: trunk/SKTemplateManager.m
===================================================================
--- trunk/SKTemplateManager.m 2012-10-19 11:15:06 UTC (rev 7734)
+++ trunk/SKTemplateManager.m 2012-10-19 15:04:34 UTC (rev 7735)
@@ -66,7 +66,7 @@
NSString *templatesPath = [appSupportPath
stringByAppendingPathComponent:TEMPLATES_DIRECTORY];
BOOL isDir;
if ([fm fileExistsAtPath:templatesPath isDirectory:&isDir] &&
isDir) {
- for (NSString *file in [fm subpathsAtPath:templatesPath]) {
+ for (NSString *file in [fm
contentsOfDirectoryAtPath:templatesPath error:NULL]) {
if ([file hasPrefix:@"."] == NO &&
[[file stringByDeletingPathExtension]
isEqualToString:@"notesTemplate"] == NO &&
[templates containsObject:file] == NO)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit