Jump to content
  • 0

How to delete Entire folder?


tanmayt

Question

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

3 answers to this question

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.