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

Method exists

libminifi/src/core/repository/FileSystemRepository.cpp:49–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49bool FileSystemRepository::exists(const minifi::ResourceClaim &streamId) {
50 std::ifstream file(streamId.getContentFullPath());
51 return file.good();
52}
53
54std::shared_ptr<io::BaseStream> FileSystemRepository::read(const minifi::ResourceClaim &claim) {
55 return std::make_shared<io::FileStream>(claim.getContentFullPath(), 0, false);

Callers 1

sendMethod · 0.45

Calls 1

getContentFullPathMethod · 0.45

Tested by

no test coverage detected