api icon indicating copy to clipboard operation
api copied to clipboard

Delete file option

Open zmn-hamid opened this issue 1 year ago • 2 comments

I have made a script which makes a info.concat file using default lua's write function. but i can't delete it using the script. the os.remove returns error saying that remove function doesn't exist, and there is no deleteFile option in app_fs. please implement this option. thanks

zmn-hamid avatar May 03 '24 08:05 zmn-hamid

Thumbs up! I need also this feature. I export frames to my dirs and if some names change I have to remove old files manualy

zendorx avatar Nov 02 '24 15:11 zendorx

Removing files CAN be very dangerous but this can be done currently using the os.execute.

How I have achieved this in the past is to put any temp files in to a folder and then remove the folder with a shell command.

Take a look at this post for more information, but be very careful when using shell commands in scripts :) Remove Files In Lua Via OS.Execute

os.remove is likely disabled to prevent accidental file deletes.

CarbsCode avatar May 14 '25 02:05 CarbsCode