| View previous topic :: View next topic |
| Author |
Message |
Question_dev
Joined: 24 Aug 2007 Posts: 88
|
Posted: Tue Apr 22, 2008 1:27 am Post subject: Delete folder? |
|
|
Is it possible to delete a folder? I know how to delete a file, but not how to del. a folder.
How/where can i do/find it
tnx |
|
| Back to top |
|
 |
sakya
Joined: 28 Apr 2006 Posts: 190
|
Posted: Tue Apr 22, 2008 1:31 am Post subject: Re: Delete folder? |
|
|
Hi! :)
| Question_dev wrote: | | Is it possible to delete a folder? I know how to delete a file, but not how to del. a folder. |
There's no function to delete a folder containing files and/or subdirectories.
You have to empty each subdirectory and then remove the empty folders with sceIoRmdir.
Ciaooo
Sakya |
|
| Back to top |
|
 |
DeathCradle
Joined: 19 Jan 2008 Posts: 6
|
Posted: Tue Apr 22, 2008 6:31 am Post subject: Re: Delete folder? |
|
|
| sakya wrote: | Hi! :)
| Question_dev wrote: | | Is it possible to delete a folder? I know how to delete a file, but not how to del. a folder. |
There's no function to delete a folder containing files and/or subdirectories.
You have to empty each subdirectory and then remove the empty folders with sceIoRmdir.
Ciaooo
Sakya |
I thought that Team WildCard did it?? was i wrong? |
|
| Back to top |
|
 |
sakya
Joined: 28 Apr 2006 Posts: 190
|
Posted: Tue Apr 22, 2008 6:50 am Post subject: Re: Delete folder? |
|
|
Hi! :)
| DeathCradle wrote: | | I thought that Team WildCard did it?? was i wrong? |
Maybe, I don't know.
I was saying that there's not a function like sceIoRmdir that deletes a non empty directory, but probably there are a lot of functions to do this in free sources...
Ciaooo
Sakya |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Tue Apr 22, 2008 6:52 am Post subject: |
|
|
You can turn the dumper from IO samples or a file browser into a
function that deletes all entries in a folder. _________________ If not actually, then potentially. |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Tue Apr 22, 2008 7:54 am Post subject: |
|
|
do it like this:
browse folder
then while browsing you check if the current entry is a file or a folder, use sceIoRemove(files) or your delete folder(does the same thing but for the subfolder) function to delete the entry.
then when it finishes, everything should be deleted _________________
Upgrade your PSP |
|
| Back to top |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
|
| Back to top |
|
 |
|