MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / delete_file

Function delete_file

src/common/winapi.cpp:131–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131bool delete_file(const wchar_t *path) {
132 SetFileAttributes(path, FILE_ATTRIBUTE_NORMAL);
133 return DeleteFile(path);
134}
135
136std::optional<int> library_bitness(const wchar_t *path) {
137 auto h_file = CreateFile(path, GENERIC_READ, 0, nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED, nullptr);

Callers 11

plugin_clean_upFunction · 0.85
switch_debug_loggingFunction · 0.85
delete_logFunction · 0.85
download_dictionaryMethod · 0.85
create_hunspellMethod · 0.85
~HunspellInterfaceMethod · 0.85
remove_selectedMethod · 0.85
OnBytesReceivedMethod · 0.85
do_download_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected