forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Lua creating folders on pc?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
mplacona



Joined: 07 Aug 2007
Posts: 28

PostPosted: Thu Aug 09, 2007 7:09 am    Post subject: Lua creating folders on pc? Reply with quote

Hi guys, I've got a quick one here.

Can the LUA create directories on my desktop is connected by USB?

I've tried the folowing code as a test:

Code:

--Connects the PSP to the USB
System.usbDiskModeActivate()

System.sleep(15000)

System.createDirectory("c:\\bkptst")


It doesn't return any error, though it doesn't create any folder.

If I try the same, but creating it on ms0:/, it woks like a charm.

Can anyone here help me?

Thanks[/code]
Back to top
View user's profile Send private message
michaelp



Joined: 02 Jul 2007
Posts: 7

PostPosted: Thu Aug 09, 2007 7:27 am    Post subject: Reply with quote

i don't think you can do that if it doesn't create any folder
maybe try taking 1 of the slashes in the C:/ location, i don't think there is supposed to be two
Back to top
View user's profile Send private message
mplacona



Joined: 07 Aug 2007
Posts: 28

PostPosted: Thu Aug 09, 2007 7:38 am    Post subject: Reply with quote

AFAIK the backslash is an escape isn't it?

If I try with just one I think I'll get an error. Will try though!
Back to top
View user's profile Send private message
mplacona



Joined: 07 Aug 2007
Posts: 28

PostPosted: Thu Aug 09, 2007 7:45 am    Post subject: Reply with quote

Yeah, I got no error, but no folder created either
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Fri Aug 10, 2007 2:51 am    Post subject: Reply with quote

No, the PSP can't control the PC in any way when it is connected as a USB mass storage device. Not a limitation of the PSP or LUA, that's just how USB mass storage works.
Back to top
View user's profile Send private message
mplacona



Joined: 07 Aug 2007
Posts: 28

PostPosted: Fri Aug 10, 2007 2:54 am    Post subject: Reply with quote

So that means I can't even do it using pure C?

Do you know any other way for copying files from the MS (inserted on the PSP) to the PC?

I mean.. programatically?
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Fri Aug 10, 2007 3:33 am    Post subject: Reply with quote

In mass storage mode, the PSP can't initiate any sort of file transfer, no.
If you write a custom driver on the PSP and PC side, you could do it. Look at psplink's usb async provider stuff if you want to implement that.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group