Android: Fix recursive delete (#7882)
authorstujones11 <stujones111@gmail.com>
Wed, 21 Nov 2018 23:06:03 +0000 (23:06 +0000)
committerParamat <paramat@users.noreply.github.com>
Wed, 21 Nov 2018 23:06:03 +0000 (23:06 +0000)
src/filesys.cpp

index be61ba430465d987150d1a6b3294dc9fccae4bb7..dc34b6b560798baaf795146d1a5ab261c3760099 100644 (file)
@@ -303,7 +303,11 @@ bool RecursiveDelete(const std::string &path)
        {
                // Child
                char argv_data[3][10000];
+#ifdef __ANDROID__
+               strcpy(argv_data[0], "/system/bin/rm");
+#else
                strcpy(argv_data[0], "/bin/rm");
+#endif
                strcpy(argv_data[1], "-rf");
                strncpy(argv_data[2], path.c_str(), 10000);
                char *argv[4];