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

Method FileManager

nanofi/tests/CTestsBase.h:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34class FileManager {
35public:
36 FileManager(const std::string& filePath) {
37 assert(!filePath.empty() && "filePath provided cannot be empty!");
38 struct stat statbuff;
39 assert(!is_directory(filePath.c_str()) && "Provided file is not a filepath");
40 filePath_ = filePath;
41 remove(filePath_.c_str());
42 outputStream_.open(filePath_, std::ios::binary);
43 }
44
45 ~FileManager() {
46 std::ifstream ifs(filePath_);

Callers

nothing calls this directly

Calls 4

c_strMethod · 0.80
openMethod · 0.80
is_directoryFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected