1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

Merge pull request #113790 from sockeye-d/resource-duplication-invalid-extension

Propagate errors from `EditorFileSystem::_copy_file` through `EditorFileSystem::copy_file`
This commit is contained in:
Rémi Verschelde
2025-12-18 23:31:07 +01:00
2 changed files with 6 additions and 3 deletions

View File

@@ -3555,7 +3555,10 @@ Error EditorFileSystem::make_dir_recursive(const String &p_path, const String &p
}
Error EditorFileSystem::copy_file(const String &p_from, const String &p_to) {
_copy_file(p_from, p_to);
Error err = _copy_file(p_from, p_to);
if (err != OK) {
return err;
}
EditorFileSystemDirectory *parent = get_filesystem_path(p_to.get_base_dir());
ERR_FAIL_NULL_V(parent, ERR_FILE_NOT_FOUND);