MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / shellDeleteFile

Function shellDeleteFile

modules/dasSQLITE/sqlite/shell.c:21522–21532  ·  view source on GitHub ↗

** Delete a file. */

Source from the content-addressed store, hash-verified

21520** Delete a file.
21521*/
21522int shellDeleteFile(const char *zFilename){
21523 int rc;
21524#ifdef _WIN32
21525 wchar_t *z = sqlite3_win32_utf8_to_unicode(zFilename);
21526 rc = _wunlink(z);
21527 sqlite3_free(z);
21528#else
21529 rc = unlink(zFilename);
21530#endif
21531 return rc;
21532}
21533
21534/*
21535** Try to delete the temporary file (if there is one) and free the

Callers 2

clearTempFileFunction · 0.85
do_meta_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected