7 Replies Latest reply on Dec 4, 2012 4:44 AM by Harbs.

    Documents folder in Windows

    MSSDedalus Level 1

      I have build an extension which needs a file in the user / Documents folder, this file is included in the hybrid bundle as a resource with following destination:

       

      $userhomefolder/Documents

       

      in the extension I use the file as:

       

      File.documentsDirectory.resolvePath("my file")

       

      the problem is that in some Windows installations the extension manager doesn't saves the resources in the same Documents folder but in one in another drive, then my extension can't find this file. I'm not sure what kind of Windows configuration this users have but it seems the user Documents folder is not located in the main drive.

       

      How can I be sure that the destination in the bundle resoures always points to File.documentsDirectory ?

       

      Thanks