Delete folder?

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

Moderators: cheriff, TyRaNiD

Post Reply
Question_dev
Posts: 88
Joined: Fri Aug 24, 2007 8:23 pm

Delete folder?

Post by Question_dev »

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
sakya
Posts: 190
Joined: Fri Apr 28, 2006 5:48 pm
Contact:

Re: Delete folder?

Post by sakya »

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
DeathCradle
Posts: 6
Joined: Sat Jan 19, 2008 10:56 pm
Contact:

Re: Delete folder?

Post by DeathCradle »

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?
sakya
Posts: 190
Joined: Fri Apr 28, 2006 5:48 pm
Contact:

Re: Delete folder?

Post by sakya »

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
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

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.
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

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
Image
Upgrade your PSP
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

Post Reply