lordgamez commented on a change in pull request #942:
URL: https://github.com/apache/nifi-minifi-cpp/pull/942#discussion_r533552705
##########
File path: extensions/standard-processors/processors/PutFile.cpp
##########
@@ -54,6 +54,19 @@ core::Property PutFile::CreateDirs("Create Missing
Directories", "If true, then
core::Property PutFile::MaxDestFiles(
core::PropertyBuilder::createProperty("Maximum File
Count")->withDescription("Specifies the maximum number of files that can exist
in the output directory")->withDefaultValue<int>(-1)->build());
+#ifndef WIN32
+core::Property PutFile::Permissions(
+ core::PropertyBuilder::createProperty("Permissions")
+ ->withDescription("Sets the permissions on the output file to the value
of this attribute. "
+ "Format must be format octal number (e.g. 644 or
0755). Not supported on Windows systems.")
+ ->build());
+core::Property PutFile::DirectoryPermissions(
+ core::PropertyBuilder::createProperty("Directory Permissions")
+ ->withDescription("Sets the permissions on the directories being created
if 'Create Missing Directories' property is set. "
+ "Format must be format octal number (e.g. 644 or
0755). Not supported on Windows systems.")
+ ->build());
Review comment:
In that case it works the same way as
`boost::filesystem::create_directory` which is creating the directory in mode
`777` then applies the system's default umask.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]