From ec72abe8c9cc444c8aeb481f85d99a02fc8b004c Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 10 Dec 2012 22:57:22 -0800 Subject: [PATCH] Get rid of warnings creating MemStick, etc. --- Common/FileUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Common/FileUtil.cpp b/Common/FileUtil.cpp index f1d7a74b7b..47ef592e62 100644 --- a/Common/FileUtil.cpp +++ b/Common/FileUtil.cpp @@ -202,12 +202,12 @@ bool CreateFullPath(const std::string &fullPath) // we're done, yay! if (position == fullPath.npos) { - if (!File::IsDirectory(fullPath)) + if (!File::Exists(fullPath)) File::CreateDir(fullPath); return true; } std::string subPath = fullPath.substr(0, position); - if (!File::IsDirectory(subPath)) + if (!File::Exists(subPath)) File::CreateDir(subPath); // A safety check