why would you want to rename all of the files in a directory? sounds kinda fishy...
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??
why would you want to rename all of the files in a directory? sounds kinda fishy...
simple...
i use irshell....
and loads of mp3s in 1 directory
and irshell doesnt have shuffle / random playback
so i rename all the files with a random number prefix
but currently i have to use version 0.17 to read the directory and version 0.20 to rename the files.
Ofcourse if anyone wants to do it in c?
U tricked me... I thought I'd see semi-naked chicks.... wahhhhhh
is't true????
*looks around... sees no topless models, cries*
I would like to see topless model AND the answer to his question![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks