[X11] Improving error detection in move_to_trash

This commit is contained in:
Iskustvo 2018-02-14 00:04:11 +01:00
parent d5eba83fd5
commit 268d7c7c5b
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())