I have also tried to use this function:
function cancellaCartella(cartella$)
set dir cartella$
perform checklist for files
for t=1 to checklist quantity()
delete file checklist string$(t)
next t
set dir ".."
delete directory cartella$
set dir ".."
endfunction
and calling it using this one for example:
path = get dir$()
dirName = path+"\TextureExtract"
cancellaCartella(dirName)
It seems to work if I load the menu, but when I load the game's data the program crash, probably because of too many files deleted and Windows close the process for security reason?
We discovered a new earth but we couldn't even delete a folder without crashing the program, sometimes things are more complex than what they should be