×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Aug 2007
    Posts
    55

    Do I need to create the apps private directory?

    Hi!

    I am developing an app that creates a preferences-file in the apps home dir upon first startup, that is it creates it if it does not yet exist. On my home machine and on my N95 it created the file correctly, but on my work machine on the emulator it complains that it cannot find the private dir. Is the app not supposed to create this itself? Do I need to create the directory, in this case "C:\private\EFA6386F\", myself and why did the app work on some machines?

    BTW, I often see paths like "\\private\..." here on the forum. What is the "\\" at the beginning of the path. I cannot use a path like this. Is it just another way to say "writable drive" or something like that? Also, do the appication uninstaller delete the private folder upon app uninstallation?

    Thanks!

    Sebastian Ahlman

  2. #2
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Do I need to create the apps private directory?

    If the directory is not created during installation (that is if you do not copy files in it at that stage) or if you need to use a private folder on some other drive then you have to create the directory yourself. See RFs::CreatePrivatePath() and RFs::PrivatePath().

    "\" is an escape character so if you need to use it for specifying a path in a descriptor then you have to use _L(KMyEcamplePath, "c:\\private\\<some_sid>\\mydirectory\\") rather than _L(KMyEcamplePath, "c:\private\<some_sid>\mydirectory\")
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

Similar Threads

  1. Creating a directory in a root directory
    By ajitnair in forum Mobile Java General
    Replies: 3
    Last Post: 2007-11-07, 15:48
  2. Why my app can't write its private directory?
    By daveice in forum Symbian
    Replies: 7
    Last Post: 2007-09-14, 09:05
  3. Cannot load mif from private directory
    By erst in forum Symbian Media (Closed)
    Replies: 5
    Last Post: 2007-05-14, 10:22
  4. Eclipse
    By g00011431 in forum Mobile Java General
    Replies: 3
    Last Post: 2006-12-04, 10:35
  5. Image Browsing on a Web Browser program
    By webassassin in forum Mobile Java General
    Replies: 0
    Last Post: 2004-04-22, 08:09

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×