You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2021/11/22 15:34:00 UTC
[sling-org-apache-sling-installer-provider-file] branch master updated: SLING-7504 only create file installer directory if it doesn't exist yet
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-installer-provider-file.git
The following commit(s) were added to refs/heads/master by this push:
new 6bbc945 SLING-7504 only create file installer directory if it doesn't exist yet
6bbc945 is described below
commit 6bbc945bb543de07245b78c983214148ef43c212
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Mon Nov 22 16:33:56 2021 +0100
SLING-7504 only create file installer directory if it doesn't exist yet
also create parent directories in case they don't exist yet
---
.../org/apache/sling/installer/provider/file/impl/FileInstaller.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/sling/installer/provider/file/impl/FileInstaller.java b/src/main/java/org/apache/sling/installer/provider/file/impl/FileInstaller.java
index 6940dea..7729bd1 100644
--- a/src/main/java/org/apache/sling/installer/provider/file/impl/FileInstaller.java
+++ b/src/main/java/org/apache/sling/installer/provider/file/impl/FileInstaller.java
@@ -90,7 +90,7 @@ public class FileInstaller
logger.debug("Starting monitor for {}", config.directory);
if (autoCreateDirectories) {
try {
- Files.createDirectory(Paths.get(config.directory));
+ Files.createDirectories(Paths.get(config.directory));
} catch (IOException e) {
logger.warn("Could not create directory to monitor at {}", config.directory, e);
}