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
commit469ba6c10d5bd3c0fc520886443f1f41f0254208 (patch)
tree7d864e918d94c45dc47985f813f6c92374cb2439 /fileaccess
parent3350fedbd500c8a7445002b48a7dc49da48e1463 (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 ce075095356a..183847fc280e 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 )