Android: Fix recursive delete (#7882)

This commit is contained in:
stujones11 2018-11-21 23:06:03 +00:00 committed by Paramat
parent 67b20ff15a
commit 015e46310a

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