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 

Delete folder?

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



Joined: 24 Aug 2007
Posts: 88

PostPosted: Tue Apr 22, 2008 1:27 am    Post subject: Delete folder? Reply with quote

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
View user's profile Send private message
sakya



Joined: 28 Apr 2006
Posts: 190

PostPosted: Tue Apr 22, 2008 1:31 am    Post subject: Re: Delete folder? Reply with quote

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
View user's profile Send private message Visit poster's website
DeathCradle



Joined: 19 Jan 2008
Posts: 6

PostPosted: Tue Apr 22, 2008 6:31 am    Post subject: Re: Delete folder? Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
sakya



Joined: 28 Apr 2006
Posts: 190

PostPosted: Tue Apr 22, 2008 6:50 am    Post subject: Re: Delete folder? Reply with quote

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
View user's profile Send private message Visit poster's website
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Tue Apr 22, 2008 6:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Tue Apr 22, 2008 7:54 am    Post subject: Reply with quote

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
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Tue Apr 22, 2008 11:29 pm    Post subject: Reply with quote

Searching is your friend :)

http://forums.ps2dev.org/viewtopic.php?t=6859
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 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