summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/FileUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/Src/FileUtil.cpp')
-rw-r--r--Source/Core/Common/Src/FileUtil.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp
index 8ec72c061a..f8d9b565ff 100644
--- a/Source/Core/Common/Src/FileUtil.cpp
+++ b/Source/Core/Common/Src/FileUtil.cpp
@@ -11,6 +11,13 @@ bool File::Exists(const std::string &filename)
#endif
}
+bool File::IsDirectory(const std::string &filename) {
+#ifdef _WIN32
+ return (GetFileAttributes(filename.c_str()) & FILE_ATTRIBUTE_DIRECTORY) != 0;
+#else
+ return false; //TODO
+#endif
+}
std::string SanitizePath(const std::string &filename) {
std::string copy = filename;