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 

Copy entire folder

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



Joined: 07 Aug 2007
Posts: 28

PostPosted: Wed Aug 22, 2007 5:32 am    Post subject: Copy entire folder Reply with quote

Hi guys, I'm pretty new to the PSP Development, and I was wondering if it's possible to copy an entire folder from one place to another programatically.

I've had a look at the other topics, but couldn't find something that suits me.

Do you have any advices for me?

thanks
Back to top
View user's profile Send private message
flatmush



Joined: 07 Aug 2007
Posts: 28
Location: Here

PostPosted: Wed Aug 22, 2007 6:47 am    Post subject: Reply with quote

There is no function I know of that will do what you are imagining. What you want to do is google recursive folder/file copying algorithms and write your own.
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
mplacona



Joined: 07 Aug 2007
Posts: 28

PostPosted: Wed Aug 22, 2007 7:21 am    Post subject: Reply with quote

Ok, so can you at least point out to which functions I need to use to list the folder contets and how to copy a file froma folder to another\/

from that point I can go alone :)

Thanks
Back to top
View user's profile Send private message
flatmush



Joined: 07 Aug 2007
Posts: 28
Location: Here

PostPosted: Wed Aug 22, 2007 8:43 am    Post subject: Reply with quote

basically you will need most of the sceIo functions, refer to your sdk or the doxygen to find their definitions.
Basically you will need Make Dir, Dread, Stat and you will have to write your own streamed copy function using fopen/fread/fwrite/fclose or the sceio alternatives.
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP 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