diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-03-06 15:31:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-06 15:31:42 +0100 |
commit | 4d099e901b0c176f8da8e63384c235f23f8c440c (patch) | |
tree | 0fe8deb20539462023f16f31b437ff0c133e56d5 | |
parent | 97774f6f69a5566a526c161411ecdf34a5a90b14 (diff) | |
parent | 8920bb8c1b6aebb665d376890bd6971f416b8609 (diff) | |
download | redot-engine-4d099e901b0c176f8da8e63384c235f23f8c440c.tar.gz |
Merge pull request #26705 from volzhs/fix-export
Fix directory check when exporting project
-rw-r--r-- | editor/editor_export.cpp | 2 | ||||
-rw-r--r-- | platform/android/export/export.cpp | 2 | ||||
-rw-r--r-- | platform/iphone/export/export.cpp | 2 | ||||
-rw-r--r-- | platform/javascript/export/export.cpp | 2 | ||||
-rw-r--r-- | platform/osx/export/export.cpp | 2 | ||||
-rw-r--r-- | 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 62c0228f6a..dc43faeff1 100644 --- a/editor/editor_export.cpp +++ b/editor/editor_export.cpp @@ -1466,7 +1466,7 @@ List<String> EditorExportPlatformPC::get_binary_extensions(const Ref<EditorExpor Error EditorExportPlatformPC::export_project(const Ref<EditorExportPreset> &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 fc26039c28..e489bce3f8 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 49f97e5946..85d4b9e847 100644 --- a/platform/iphone/export/export.cpp +++ b/platform/iphone/export/export.cpp @@ -839,7 +839,7 @@ Error EditorExportPlatformIOS::export_project(const Ref<EditorExportPreset> &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 b7ca1eb1d7..871a8769d9 100644 --- a/platform/javascript/export/export.cpp +++ b/platform/javascript/export/export.cpp @@ -211,7 +211,7 @@ Error EditorExportPlatformJavaScript::export_project(const Ref<EditorExportPrese template_path = find_export_template(EXPORT_TEMPLATE_WEBASSEMBLY_RELEASE); } - 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/osx/export/export.cpp b/platform/osx/export/export.cpp index a0eccceed0..5e94bc457b 100644 --- a/platform/osx/export/export.cpp +++ b/platform/osx/export/export.cpp @@ -425,7 +425,7 @@ Error EditorExportPlatformOSX::export_project(const Ref<EditorExportPreset> &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 8405608dd6..8ccf122d9f 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; } |