RFS delete gives KErrPathNotFound
| Fri, 2008-08-01 10:57 | |
|
Hi All, Can I delete a file which belongs to another process?? My process has UIDX From this process, I am trying to do Rfs.delete(\epoc32\...\private\UIDY\a.txt) This gives KErrPathNotFound. I understand the file is in other process's UID?? But I need to do this.. Could anyone suggest? Thanks, Started my Journey in Symbian - http://celluleus.blogspot.com/ |
|






Forum posts: 85
You'll need the AllFiles capability to delete files in the private area of other applications.
Forum posts: 59
Thank Ivsti,
what does Capability ALL means?? Does it have Allfiles included??
I have tried including Allfiles.. but still i get the problem
Started my Journey in Symbian - http://celluleus.blogspot.com/
Forum posts: 295
AllFiles Capability means
Grants visibility to all files in the system and extra write access to files under /private.
Thanks & Regards
Ram
Symbian OS 9.1,S60 3rd edition MR,and Carbide.C++
Forum posts: 59
But still its not working.. any idea??
CAPABILITY ALL AllFiles
This is the line in my mmp.
Started my Journey in Symbian - http://celluleus.blogspot.com/
Forum posts: 295
Hi,
which SDK and IDE you are using. To understand capabilities you can see this link.
http://www.forum.nokia.com/main/platforms/s60/capability_descriptions.html
Thanks & Regards
Ram
Symbian OS 9.1,S60 3rd edition MR,and Carbide.C++
Forum posts: 59
Thanks Sahu.
I have another doubt.
I have a dll and associated mmp file, in which i have included AllFiles capability. But the interface in which the delete function fails is called from other app (an .exe).
In this scenario, Do we need to have the AllFiles capability with the .exe's mmp file??
Started my Journey in Symbian - http://celluleus.blogspot.com/
Forum posts: 2009
I have a few question regarding your problem:
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
Forum posts: 59
Thanks for the response eric.
Yep I have clear idea about the differnce between emulator file system and my windows file system
KErrPathNotFound - I get only this error
And regarding the understanding of Allfiles capability.. Its logical that one process or app can not delete the private files of the other. So, it needs an extra higher level capability to access other process's private directory. That particular capability is called as "AllFiles". Is that all about?? please correct if I am wrong.
Sorry I couldnt find time to go through the article about the capabilities. Probably i can revisit my understanding after reading that.
Thanks,
Chandru
Started my Journey in Symbian - http://celluleus.blogspot.com/
Forum posts: 295
The capabilities that an application requires can be confirmed in the S60 emulator. When the option "Enable Debug Security Messages" and "Enable EPOCWIND.OUT Logging" are selected in the emulator's Preferences dialog (or PlatSecDiagnostics set to ON and LogToFile set to 1 in the emulator’s epoc.ini file), a log file is created in the Windows “temp” folder called epocwind.out that includes warning messages indicating the capabilities needed by the application.
Thanks & Regards
Ram
Symbian OS 9.1,S60 3rd edition MR,and Carbide.C++
Forum posts: 159
Its all very well you adding the AllFiles capabilites to your project and running in on the emulator, and you will be able to run it on *your* phone. But the simple fact is you won't be able to run it on anybodies elses phone unless you get your app signed. And the chances of you getting an app signed with AllFiles is very very slim.
Forum posts: 59
Hi RB_Sahu,
I am very much aware of that epocwind.out. Infact I have checked for those warning message. And I didnt get any.
- Chandru
Started my Journey in Symbian - http://celluleus.blogspot.com/
Forum posts: 59
Numpty_Alert,
Yes. your point seems to be sounding good.
But at the same time, Is there anyother way to delete a file which is privately owned by other process.
- Chandru
Started my Journey in Symbian - http://celluleus.blogspot.com/
Forum posts: 2009
No. That's why there is platform security... so that a process can have its file and prevent others from accessing it.
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
Forum posts: 59
Thanks Eric. Then probably I need to request the "file owning process" to delete the file from the "process which wants to delete".
Started my Journey in Symbian - http://celluleus.blogspot.com/
Forum posts: 162
One reason platsec diagnostics might be missing is because of the rather conservative default settings of the S60 emulator. See http://www.tanzim.co.uk/2008/07/06/setting-up-the-s60-sdk-for-development/
http://www.tanzim.co.uk