mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
[X11] Improving error detection in move_to_trash
This commit is contained in:
parent
d5eba83fd5
commit
268d7c7c5b
2 changed files with 38 additions and 18 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue