PSP Hacks - Forums
Go Back   PSP Hacks - Forums > Tech Talk > LUA Scripting

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 09-07-2007, 01:24 PM
lupus lupus is offline
PSP Newbie
 
Join Date: Apr 2007
Posts: 9
lupus User Has a Beginner Reputation
Default

hi to all
now i try to code some app on lua.

can somebody help with some example of script

i need delete all data on folder "ms0:/backup"

i try:

Code:
function delBackup()
 
path = "System.removeFile(path)"
 
dirlist = System.listDirectory(path)
 
for index,file in ipairs(dirlist) do
 
if dirlist[index].directory == 0 then 
   System.removeFile(path..+"/"+..dirlist[index].name)
end
 
end
 
System.removeFile(path)
delBackup() 
end
or
Code:
System.removeFile("ms0:/backup/file1")
System.removeFile("ms0:/backup/file2")
...
System.removeFile("ms0:/backup/fileX")
any errors, but no one files was deleted :(
Reply With Quote
  #2  
Old 08-22-2008, 11:51 PM
lua scripter lua scripter is offline
PSP Newbie
 
Join Date: Aug 2008
Posts: 14
lua scripter User Has a Beginner Reputation
Default

so far lua cant delete files i bet it will come in the next v tho
__________________


Email me your lua scripts ill fix them or help you fix them and Email you back on what you wanted :D
Reply With Quote
Reply

 



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 07:29 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©