[
https://issues.apache.org/jira/browse/NIFI-15974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jens M Kofoed updated NIFI-15974:
---------------------------------
Description:
If the path include multiple subfolders and the path include backslashes the
"createMissingDirectoriesRecursively" fails.
The method .getParent() in java.io.File does only split on forward slashes.
A fix could be to include the following line in the
"createMissingDirectoriesRecursively":
pathToCreate = pathToCreate.replace('\', '/');
was:
If the path include multiple subfolders and the path include backslashes the
"createMissingDirectoriesRecursively" fails.
The method .getParent() in java.io.File does only split on forward slashes.
A fix could be to include the following line in the
"createMissingDirectoriesRecursively":
pathToCreate = pathToCreate.replace('\\', '/');
> PutSmbFile fails to create recursive parent folder of path include backslashes
> ------------------------------------------------------------------------------
>
> Key: NIFI-15974
> URL: https://issues.apache.org/jira/browse/NIFI-15974
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 2.9.0
> Reporter: Jens M Kofoed
> Priority: Major
>
> If the path include multiple subfolders and the path include backslashes the
> "createMissingDirectoriesRecursively" fails.
> The method .getParent() in java.io.File does only split on forward slashes.
> A fix could be to include the following line in the
> "createMissingDirectoriesRecursively":
> pathToCreate = pathToCreate.replace('\', '/');
--
This message was sent by Atlassian Jira
(v8.20.10#820010)