Copy entire folder

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
mplacona
Posts: 28
Joined: Tue Aug 07, 2007 7:07 am

Copy entire folder

Post by mplacona »

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
flatmush
Posts: 28
Joined: Tue Aug 07, 2007 9:15 am
Location: Here
Contact:

Post by flatmush »

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.
mplacona
Posts: 28
Joined: Tue Aug 07, 2007 7:07 am

Post by mplacona »

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
flatmush
Posts: 28
Joined: Tue Aug 07, 2007 9:15 am
Location: Here
Contact:

Post by flatmush »

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.
Post Reply