Set read\write permission

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

Moderators: cheriff, TyRaNiD

Post Reply
ne0h
Posts: 386
Joined: Thu Feb 21, 2008 2:15 am

Set read\write permission

Post by ne0h »

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?
Question_dev
Posts: 88
Joined: Fri Aug 24, 2007 8:23 pm

Post by Question_dev »

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

Cya
ne0h
Posts: 386
Joined: Thu Feb 21, 2008 2:15 am

Post by ne0h »

...
I've already try this funct, but is not working if the file is marked as a system file!
moonlight
Posts: 567
Joined: Wed Oct 26, 2005 7:46 pm

Post by moonlight »

You have sceIoChstat for that.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

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.
ne0h
Posts: 386
Joined: Thu Feb 21, 2008 2:15 am

Post by ne0h »

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!
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

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.
ne0h
Posts: 386
Joined: Thu Feb 21, 2008 2:15 am

Post by ne0h »

Yes, its right, so excuse me!
I've posted too many posts that are not directly related to the PSP development...
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

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