[X11] Improving error detection in move_to_trash
This commit is contained in:
@ -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())
|
||||
|
||||
Reference in New Issue
Block a user