MCPcopy Create free account
hub / github.com/Gregwar/fatcat / enableWrite

Method enableWrite

src/core/FatSystem.cpp:64–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void FatSystem::enableWrite()
65{
66 close(fd);
67 fd = open(filename.c_str(), O_RDWR|O_LARGEFILE);
68
69 if (fd < 0) {
70 ostringstream oss;
71 oss << "! Unable to open the input file: " << filename << " for writing";
72
73 throw oss.str();
74 }
75
76 writeMode = true;
77}
78
79FatSystem::~FatSystem()
80{

Callers 4

mainFunction · 0.80
mergeMethod · 0.80
patchMethod · 0.80
fixMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected