mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Android: Fix recursive delete (#7882)
This commit is contained in:
parent
67b20ff15a
commit
015e46310a
1 changed files with 4 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue