MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / removeFile

Function removeFile

src/backend/common/util.cpp:186–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186bool removeFile(const string& path) {
187#if defined(OS_WIN)
188 return DeleteFileA(path.c_str()) != 0;
189#else
190 return unlink(path.c_str()) == 0;
191#endif
192}
193
194bool renameFile(const string& sourcePath, const string& destPath) {
195 return rename(sourcePath.c_str(), destPath.c_str()) == 0;

Callers 5

compileModuleFunction · 0.85
loadModuleFromDiskFunction · 0.85
isDirectoryWritableFunction · 0.85
compileModuleFunction · 0.85
loadModuleFromDiskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected