From d7052ddba334de3df1190837c6d8589b48799965 Mon Sep 17 00:00:00 2001 From: Zher Huei Lee Date: Tue, 1 Mar 2016 10:40:31 +0000 Subject: Added relative paths for DirAccess::remove() Follows similar behaviour to DirAccess::rename() --- platform/osx/dir_access_osx.mm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'platform/osx') diff --git a/platform/osx/dir_access_osx.mm b/platform/osx/dir_access_osx.mm index e345bea60a..29f8fda663 100644 --- a/platform/osx/dir_access_osx.mm +++ b/platform/osx/dir_access_osx.mm @@ -297,8 +297,11 @@ Error DirAccessOSX::rename(String p_path,String p_new_path) { } Error DirAccessOSX::remove(String p_path) { - p_path=fix_path(p_path); - + if (p_path.is_rel_path()) + p_path=get_current_dir().plus_file(p_path); + else + p_path=fix_path(p_path); + struct stat flags; if ((stat(p_path.utf8().get_data(),&flags)!=0)) return FAILED; -- cgit v1.2.3