Revision: 2685
http://skim-app.svn.sourceforge.net/skim-app/?rev=2685&view=rev
Author: hofman
Date: 2007-08-19 04:49:17 -0700 (Sun, 19 Aug 2007)
Log Message:
-----------
Small changes to error handling.
Modified Paths:
--------------
trunk/Files_SKExtensions.m
Modified: trunk/Files_SKExtensions.m
===================================================================
--- trunk/Files_SKExtensions.m 2007-08-19 11:28:18 UTC (rev 2684)
+++ trunk/Files_SKExtensions.m 2007-08-19 11:49:17 UTC (rev 2685)
@@ -226,14 +226,17 @@
FSRef container;
Boolean isDirectory;
+ /* get FSRef for container */
result = FSPathMakeRef(containerPath, &container, &isDirectory);
- if (isDirectory == false)
- result = errFSNotAFolder;
require_noerr(result, FSPathMakeRef);
+
+ /* make sure container is a directory */
+ require_action(isDirectory == false, ContainerNotDirectory, result =
dirNFErr);
/* delete the container recursively */
result = FSDeleteContainer(&container);
+ContainerNotDirectory:
FSPathMakeRef:
return ( result );
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit