RemoveDirectory function kernel32
Deletes an existing empty directory.
To learn more, see learn.microsoft.com/windows/win32/api/fileapi/nf-fileapi-removedirectoryw.
Implementation
Win32Result<bool> RemoveDirectory(PCWSTR lpPathName) {
final result_ = RemoveDirectoryW_Wrapper(lpPathName);
return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}