| View previous topic :: View next topic |
| Author |
Message |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Thu May 01, 2008 4:53 am Post subject: Set read\write permission |
|
|
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 |
|
 |
Question_dev
Joined: 24 Aug 2007 Posts: 88
|
Posted: Sat May 03, 2008 8:23 am Post subject: |
|
|
No.
The problem is your delete code.
You can use this to delete a file : sceIoRemove("ms0:/file.txt");
Cya |
|
| Back to top |
|
 |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Sat May 03, 2008 10:40 pm Post subject: |
|
|
...
I've already try this funct, but is not working if the file is marked as a system file! _________________ Get Xplora! |
|
| Back to top |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Sun May 04, 2008 5:01 am Post subject: |
|
|
| You have sceIoChstat for that. |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Sun May 04, 2008 5:02 am Post subject: |
|
|
| 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 |
|
 |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Sun May 04, 2008 9:49 pm Post subject: |
|
|
| 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 |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Mon May 05, 2008 6:14 am Post subject: |
|
|
| 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 |
|
 |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Tue May 06, 2008 3:20 am Post subject: |
|
|
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 |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Tue May 06, 2008 6:03 am Post subject: |
|
|
| 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 |
|
 |
|