From 8920bb8c1b6aebb665d376890bd6971f416b8609 Mon Sep 17 00:00:00 2001 From: volzhs Date: Wed, 6 Mar 2019 21:20:18 +0900 Subject: [PATCH] Fix directory check when exporting project Fix #26702 --- editor/editor_export.cpp | 2 +- platform/android/export/export.cpp | 2 +- platform/iphone/export/export.cpp | 2 +- platform/javascript/export/export.cpp | 2 +- platform/osx/export/export.cpp | 2 +- platform/uwp/export/export.cpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/editor/editor_export.cpp b/editor/editor_export.cpp index 62c0228f6aa..dc43faeff14 100644 --- a/editor/editor_export.cpp +++ b/editor/editor_export.cpp @@ -1466,7 +1466,7 @@ List EditorExportPlatformPC::get_binary_extensions(const Ref &p_preset, bool p_debug, const String &p_path, int p_flags) { ExportNotifier notifier(*this, p_preset, p_debug, p_path, p_flags); - if (!FileAccess::exists(p_path.get_base_dir())) { + if (!DirAccess::exists(p_path.get_base_dir())) { return ERR_FILE_BAD_PATH; } diff --git a/platform/android/export/export.cpp b/platform/android/export/export.cpp index fc26039c286..e489bce3f88 100644 --- a/platform/android/export/export.cpp +++ b/platform/android/export/export.cpp @@ -1499,7 +1499,7 @@ public: } } - if (!FileAccess::exists(p_path.get_base_dir())) { + if (!DirAccess::exists(p_path.get_base_dir())) { return ERR_FILE_BAD_PATH; } diff --git a/platform/iphone/export/export.cpp b/platform/iphone/export/export.cpp index 49f97e59466..85d4b9e8474 100644 --- a/platform/iphone/export/export.cpp +++ b/platform/iphone/export/export.cpp @@ -839,7 +839,7 @@ Error EditorExportPlatformIOS::export_project(const Ref &p_p } } - if (!FileAccess::exists(dest_dir)) { + if (!DirAccess::exists(dest_dir)) { return ERR_FILE_BAD_PATH; } diff --git a/platform/javascript/export/export.cpp b/platform/javascript/export/export.cpp index b7ca1eb1d7e..871a8769d95 100644 --- a/platform/javascript/export/export.cpp +++ b/platform/javascript/export/export.cpp @@ -211,7 +211,7 @@ Error EditorExportPlatformJavaScript::export_project(const Ref &p_p } } - if (!FileAccess::exists(p_path.get_base_dir())) { + if (!DirAccess::exists(p_path.get_base_dir())) { return ERR_FILE_BAD_PATH; } diff --git a/platform/uwp/export/export.cpp b/platform/uwp/export/export.cpp index 8405608dd65..8ccf122d9fd 100644 --- a/platform/uwp/export/export.cpp +++ b/platform/uwp/export/export.cpp @@ -1265,7 +1265,7 @@ public: } } - if (!FileAccess::exists(p_path.get_base_dir())) { + if (!DirAccess::exists(p_path.get_base_dir())) { return ERR_FILE_BAD_PATH; }