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 

Set read\write permission

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



Joined: 21 Feb 2008
Posts: 386

PostPosted: Thu May 01, 2008 4:53 am    Post subject: Set read\write permission Reply with quote

I'm writing a file manager and if i try to delete the file, it doesn't be deleted.
The problem is ( i think ) because i've not the write permission on the file/folder.
I've read the filemgr library but i'haven't found a function to set the permission, so i ask:
there is a function to set the read\write permission on file\directory?
_________________
Get Xplora!
Back to top
View user's profile Send private message
Question_dev



Joined: 24 Aug 2007
Posts: 88

PostPosted: Sat May 03, 2008 8:23 am    Post subject: Reply with quote

No.
The problem is your delete code.
You can use this to delete a file : sceIoRemove("ms0:/file.txt");

Cya
Back to top
View user's profile Send private message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Sat May 03, 2008 10:40 pm    Post subject: Reply with quote

...
I've already try this funct, but is not working if the file is marked as a system file!
_________________
Get Xplora!
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Sun May 04, 2008 5:01 am    Post subject: Reply with quote

You have sceIoChstat for that.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun May 04, 2008 5:02 am    Post subject: Reply with quote

So why are you trying to delete a system file? If you don't know what you're doing, that's a good way to brick a PSP. Don't expect much help for that kind of program. It's a natural filter - if you don't know, you shouldn't be doing it because it's dangerous. You certainly haven't shown in any of your threads that your C is up to the level where you should be messing with anything "system" on the PSP.
Back to top
View user's profile Send private message AIM Address
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Sun May 04, 2008 9:49 pm    Post subject: Reply with quote

J.F. wrote:
So why are you trying to delete a system file? If you don't know what you're doing, that's a good way to brick a PSP. Don't expect much help for that kind of program. It's a natural filter - if you don't know, you shouldn't be doing it because it's dangerous. You certainly haven't shown in any of your threads that your C is up to the level where you should be messing with anything "system" on the PSP.


I want to delete a system file, and i know what i'm doing!
moonlight, thanks!
_________________
Get Xplora!
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Mon May 05, 2008 6:14 am    Post subject: Reply with quote

Not from the threads you've created. Most folks here are tired of giving you basic lessons in C. Even when your questions DO relate to the PSP, they've been answered already in older threads, so you clearly don't even search first.
Back to top
View user's profile Send private message AIM Address
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Tue May 06, 2008 3:20 am    Post subject: Reply with quote

Yes, its right, so excuse me!
I've posted too many posts that are not directly related to the PSP development...
_________________
Get Xplora!
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue May 06, 2008 6:03 am    Post subject: Reply with quote

Well, I'll back off for now. I'm trying to be nicer to newcomers (see? didn't even say to noobies). So I'll just wait and see how well whatever you're writing works. In the end, it's the results that matter most in programming after all.
Back to top
View user's profile Send private message AIM Address
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