Skip to content

Commit c35ec5c

Browse files
committed
Overlooked one
1 parent 68ac698 commit c35ec5c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

exist-ant/src/main/java/org/exist/ant/XMLDBExtractTask.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,18 +181,18 @@ private void extractSubCollections(final Collection base, final String path) thr
181181

182182
if (col != null) {
183183
log("Extracting collection: " + col.getName(), Project.MSG_DEBUG);
184-
File dir = destDir.toFile();
184+
Path dir = destDir;
185185
final String subdir;
186186

187187
if (path != null) {
188-
dir = new File(destDir.toFile(), path + File.separator + childCol);
188+
dir = destDir.resolve(path + File.separator + childCol);
189189
subdir = path + File.separator + childCol;
190190
} else {
191191
subdir = childCol;
192192
}
193193

194-
if (!dir.exists() && createdirectories) {
195-
dir.mkdirs();
194+
if (Files.notExists(dir) && createdirectories) {
195+
Files.createDirectories(dir);
196196
}
197197

198198
extractResources(col, subdir);

0 commit comments

Comments
 (0)