summaryrefslogtreecommitdiff
path: root/fileaccess
diff options
context:
space:
mode:
authorAndreas Bregas <ab@openoffice.org>2000-10-11 11:26:12 +0000
committerAndreas Bregas <ab@openoffice.org>2000-10-11 11:26:12 +0000
commitb6523b9fb9fecb4d326c5715b4d71002b3a77a67 (patch)
tree44744ffd24660ffc5c3a4a6e1b9dd3034efed4d9 /fileaccess
parentb0a77a0bf129c274f353bfee3af01b85075d491c (diff)
#78811# OFileAccess::isFolder() fixed
Diffstat (limited to 'fileaccess')
-rw-r--r--fileaccess/source/FileAccess.cxx18
1 files changed, 13 insertions, 5 deletions
diff --git a/fileaccess/source/FileAccess.cxx b/fileaccess/source/FileAccess.cxx
index 086e8484b3..664b5d6246 100644
--- a/fileaccess/source/FileAccess.cxx
+++ b/fileaccess/source/FileAccess.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: FileAccess.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: mmaher $ $Date: 2000-10-10 18:15:23 $
+ * last change: $Author: ab $ $Date: 2000-10-11 12:26:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -323,9 +323,17 @@ void OFileAccess::kill( const OUString& FileURL )
sal_Bool OFileAccess::isFolder( const OUString& FileURL )
throw(CommandAbortedException, Exception, RuntimeException)
{
- INetURLObject aURLObj( FileURL, INET_PROT_FILE );
- Content aCnt( aURLObj.GetMainURL(), mxEnvironment );
- return aCnt.isFolder();
+ sal_Bool bRet = sal_False;
+ try
+ {
+ INetURLObject aURLObj( FileURL, INET_PROT_FILE );
+ Content aCnt( aURLObj.GetMainURL(), mxEnvironment );
+ bRet = aCnt.isFolder();
+ }
+ catch (CommandAbortedException &) {}
+ catch (RuntimeException &) {}
+ catch (Exception &) {}
+ return bRet;
}
sal_Bool OFileAccess::isReadOnly( const OUString& FileURL )