From 5d0dff54982b174d382aca8da00393273bc7b3e5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 8 Sep 2020 13:21:50 +0300 Subject: DeleteDirectoryTreeW - new function that deletes a folder with all subfolders (recursively) --- include/m_utils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') 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 @@ -290,6 +290,12 @@ EXTERN_C MIR_CORE_DLL(int) PathToAbsoluteW(const wchar_t *pwszSrc, wchar_t *pwsz 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 -- cgit v1.2.3