tanmayt Posted June 6, 2019 Share Posted June 6, 2019 Hello friends i am trying to make a script and need some help with it. I don't know its a bug or what but whenever I use command to delete a folder it doesn't get deleted. os.remove("/storage/emulated/0/Android/data/com.rekoo.pubgm/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/Logs") This code should delete the target directory but it isn't working. But whenever I select a particular file to delete it works. Quote os.remove("/storage/emulated/0/Android/data/com.tencent.ig/cache/GCloud.ini") Link to comment Share on other sites More sharing options...
Administrators Enyby Posted June 6, 2019 Administrators Share Posted June 6, 2019 1 hour ago, 268296_1434557595 said: This code should delete the target directory No. No any way for delete folder. Link to comment Share on other sites More sharing options...
tanmayt Posted June 6, 2019 Author Share Posted June 6, 2019 3 hours ago, Enyby said: No. No any way for delete folder. Can you please add a command for deleting all in folders files by extension type. For example Spoiler os.remove("/storage/emulated/0/Android/data/com.rekoo.pubgm/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/Logs/*.log") Link to comment Share on other sites More sharing options...
Administrators Enyby Posted June 6, 2019 Administrators Share Posted June 6, 2019 No. Because it will end up call something like this: os.remove("/storage/emulated/0/Notes/*.lua") Link to comment Share on other sites More sharing options...
Question
tanmayt
Hello friends i am trying to make a script and need some help with it.
I don't know its a bug or what but whenever I use command to delete a folder it doesn't get deleted.
os.remove("/storage/emulated/0/Android/data/com.rekoo.pubgm/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/Logs")
This code should delete the target directory but it isn't working.
But whenever I select a particular file to delete it works.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.