How do i list a directory AND rename files in lua in the same script.
I am trying to write a lua script that will rename all the files in a directory.
Should be easy I thought...
But while system.listdirectory works in luaplayer v1.7dk which i use, os.rename and system.rename seam to not work, and visa versa listdirectory doesnt work in v2.0 but system.rename does.
Is there a work-around or luaplayer version that will allow me to list the contents of a directory into a table and rename them??