summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-12-09 09:21:08 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-12-09 09:21:08 +0100
commit52f13f2339f8c7259d2aa646346b29997b85c0ec (patch)
treec587411f18b2813367973f14fbd2346217a9c01b /src
parentMerge pull request #5142 from comex/xx-poll-events (diff)
downloadyuzu-52f13f2339f8c7259d2aa646346b29997b85c0ec.tar
yuzu-52f13f2339f8c7259d2aa646346b29997b85c0ec.tar.gz
yuzu-52f13f2339f8c7259d2aa646346b29997b85c0ec.tar.bz2
yuzu-52f13f2339f8c7259d2aa646346b29997b85c0ec.tar.lz
yuzu-52f13f2339f8c7259d2aa646346b29997b85c0ec.tar.xz
yuzu-52f13f2339f8c7259d2aa646346b29997b85c0ec.tar.zst
yuzu-52f13f2339f8c7259d2aa646346b29997b85c0ec.zip
Diffstat (limited to 'src')
-rw-r--r--src/common/file_util.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp
index d5f6ea2ee..c4d738bb6 100644
--- a/src/common/file_util.cpp
+++ b/src/common/file_util.cpp
@@ -98,6 +98,11 @@ bool Delete(const fs::path& path) {
bool CreateDir(const fs::path& path) {
LOG_TRACE(Common_Filesystem, "directory {}", path.string());
+ if (Exists(path)) {
+ LOG_DEBUG(Common_Filesystem, "path exists {}", path.string());
+ return true;
+ }
+
std::error_code ec;
const bool success = fs::create_directory(path, ec);