1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-27 15:57:02 +00:00

[X11] Improving error detection in move_to_trash

(cherry picked from commit 268d7c7c5b)
This commit is contained in:
Iskustvo
2018-02-14 00:04:11 +01:00
committed by Hein-Pieter van Braam
parent fd033473c7
commit 4bdcee2b9d
2 changed files with 38 additions and 18 deletions

View File

@@ -361,6 +361,7 @@ Error DirAccessUnix::rename(String p_path, String p_new_path) {
return ::rename(p_path.utf8().get_data(), p_new_path.utf8().get_data()) == 0 ? OK : FAILED;
}
Error DirAccessUnix::remove(String p_path) {
if (p_path.is_rel_path())