diff options
| author | George Hazan <ghazan@miranda.im> | 2020-09-08 13:21:50 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2020-09-08 13:21:50 +0300 |
| commit | 5d0dff54982b174d382aca8da00393273bc7b3e5 (patch) | |
| tree | b18df845cd408a8f4d32fe02e9e65109e01c58c0 /include | |
| parent | 7997d0ec5810ad7699d0de6417510ab756be320d (diff) | |
DeleteDirectoryTreeW - new function that deletes a folder with all subfolders (recursively)
Diffstat (limited to 'include')
| -rw-r--r-- | include/m_utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/m_utils.h b/include/m_utils.h index d4cfd13593..f2e3095a31 100644 --- a/include/m_utils.h +++ b/include/m_utils.h @@ -291,6 +291,12 @@ EXTERN_C MIR_CORE_DLL(int) CreateDirectoryTree(const char *pszDir); EXTERN_C MIR_CORE_DLL(int) CreateDirectoryTreeW(const wchar_t *pwszDir);
/////////////////////////////////////////////////////////////////////////////////////////
+// Deletes a directory recursively
+// Returns 0 on success or an error code otherwise
+
+EXTERN_C MIR_CORE_DLL(int) DeleteDirectoryTreeW(const wchar_t *pwszDir, bool bAllowUndo = false);
+
+/////////////////////////////////////////////////////////////////////////////////////////
// Creates all subdirectories required to create a file with the file name given
// Returns 0 on success or an error code otherwise
|
