From 5b580e4d7aa054719e991dc90c76e0eee8399ec8 Mon Sep 17 00:00:00 2001 From: Yuri Gorshenin Date: Thu, 15 Oct 2015 14:06:01 +0300 Subject: Review fixes. --- platform/platform_win.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'platform/platform_win.cpp') diff --git a/platform/platform_win.cpp b/platform/platform_win.cpp index b69ea1ff89..1bbe9d5df0 100644 --- a/platform/platform_win.cpp +++ b/platform/platform_win.cpp @@ -10,8 +10,9 @@ #include #include -#include +#include #include +#include static bool GetUserWritableDir(string & outDir) { @@ -155,6 +156,11 @@ Platform::TStorageStatus Platform::GetWritableStorageStatus(uint64_t neededSize) return STORAGE_OK; } +bool Platform::IsDirectoryEmpty(string const & directory) +{ + return PathIsDirectoryEmptyA(directory.c_str()); +} + bool Platform::GetFileSizeByFullPath(string const & filePath, uint64_t & size) { HANDLE hFile = CreateFileA(filePath.c_str(), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); -- cgit v1.2.3