MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / create_getfile

Function create_getfile

nanofi/src/api/nanofi.cpp:559–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557}
558
559flow * create_getfile(nifi_instance * instance, flow * parent_flow, GetFileConfig * c) {
560 static const std::string first_processor = "GetFile";
561 flow *new_flow = parent_flow == nullptr ? create_new_flow(instance) : parent_flow;
562
563 // automatically adds it with success
564 auto getFile = new_flow->addProcessor(first_processor, first_processor);
565
566 new_flow->setProperty(getFile, "Input Directory", c->directory);
567 new_flow->setProperty(getFile, "Keep Source File ", c->keep_source ? "true" : "false");
568 new_flow->setProperty(getFile, "Recurse Subdirectories", c->recurse ? "true" : "false");
569
570 return new_flow;
571}
572
573processor *add_processor(flow *flow, const char *processor_name) {
574 NULL_CHECK(nullptr, flow, processor_name);

Callers 1

monitor_directoryFunction · 0.85

Calls 3

create_new_flowFunction · 0.85
addProcessorMethod · 0.45
setPropertyMethod · 0.45

Tested by

no test coverage detected