MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / deleteFile

Method deleteFile

lib/vfs/amigaffs.cc:197–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195 }
196
197 void deleteFile(const Path& path) override
198 {
199 AdfMount m(this);
200 if (path.size() == 0)
201 throw BadPathException();
202
203 auto* vol = m.mount();
204 changeDirButOne(vol, path);
205
206 int res =
207 adfRemoveEntry(vol, vol->curDirPtr, (char*)path.back().c_str());
208 if (res != RC_OK)
209 throw CannotWriteException();
210 }
211
212 void moveFile(const Path& oldPath, const Path& newPath) override
213 {

Callers

nothing calls this directly

Calls 5

BadPathExceptionClass · 0.85
adfRemoveEntryFunction · 0.85
sizeMethod · 0.45
mountMethod · 0.45

Tested by

no test coverage detected