summaryrefslogtreecommitdiff
path: root/wizards/source/tools/UCB.xba
diff options
context:
space:
mode:
authorBehrend Cornelius <bc@openoffice.org>2002-10-16 13:55:04 +0000
committerBehrend Cornelius <bc@openoffice.org>2002-10-16 13:55:04 +0000
commit733baae7e72d69cbbb275f28aa2cb1e41809187f (patch)
treee25280932f0baf944c173a6ea0031dea8aaef46d /wizards/source/tools/UCB.xba
parenta688d2800b5c7061c668a16bbd9c2630eaeb99f2 (diff)
#104114# CreateFolder Function now used in CopyRecursively Routine
Diffstat (limited to 'wizards/source/tools/UCB.xba')
-rw-r--r--wizards/source/tools/UCB.xba10
1 files changed, 3 insertions, 7 deletions
diff --git a/wizards/source/tools/UCB.xba b/wizards/source/tools/UCB.xba
index 71dae0e556f8..369abb9d8d5b 100644
--- a/wizards/source/tools/UCB.xba
+++ b/wizards/source/tools/UCB.xba
@@ -160,17 +160,13 @@ End Function
Function CopyRecursively(SourceFilePath as String, SourceStemDir as String, TargetStemDir as String)
-Dim oUcb as Object
Dim TargetDir as String
Dim TargetFile as String
- oUcb = createUnoService(&quot;com.sun.star.ucb.SimpleFileAccess&quot;)
TargetFile= ReplaceString(SourceFilePath, TargetStemDir, SourceStemDir)
TargetFileName = FileNameoutofPath(TargetFile,&quot;/&quot;)
TargetDir = DeleteStr(TargetFile, TargetFileName)
- If Not oUcb.Exists(TargetDir) Then
- oUcb.CreateFolder(TargetDir)
- End If
+ CreateFolder(TargetDir)
CopyRecursively() = TargetFile
End Function
@@ -273,5 +269,5 @@ NOSPACEONDRIVE:
CreateFolder = False
Resume GOON
End If
-GOON:
-End Function</script:module> \ No newline at end of file
+GOON:
+End Function</script:module>