nifi-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Si Sun (Jira)" <>
Subject [jira] [Commented] (NIFI-7863) PutSmbFile does not create missing folder parents folder
Date Thu, 01 Oct 2020 12:30:00 GMT


Si Sun commented on NIFI-7863:

hmm, yes this case wasn't considered ...
 according to [smbj docs|] and
[this response|] there is no direct method to
create the folders in a recursive manner. So I suppose we need to split the folder path and
recursively check with folderExists and then call mkdir.

> PutSmbFile does not create missing folder parents folder
> --------------------------------------------------------
>                 Key: NIFI-7863
>                 URL:
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.12.1
>            Reporter: Jens M Kofoed
>            Priority: Major
> I'm trying the new PutSmbFile, which I have been waiting for for years. So many many
thanks to the code writer.
> In the properties it is possible to set "Create Missing Directories" to true. But it
will only create the last subdir and not multiple dirs.
> So for instance I would like to save files in: \\server\share\dir1\dir2\dir3. Both Dir1
and Dir2 have to exists.
> It is not possible to save files in dynamically subpaths like: ${year}\${month}\${day}
> This i possible with PutFTP.
> Looking through the code, it use share.mkdir(directory) instead of .mkdir*s*

This message was sent by Atlassian Jira

View raw message