Skip to main content
October 3, 2012
Answered

Where is persistentStorageDirectory?

  • October 3, 2012
  • 1 reply
  • 479 views

I am running adl.exe in a staged test environment. One of the things I am doing is changing the Windows env variables USERPROFILE and HOME to values that reference a folder location on my machine that I have staged so as not to have the tests modify my real user dir.  When I run the air application using adl.exe, I am seeing the following:

unknown error: Error: Error #2014: Feature is not available at this time.

    at Runtime/get persistentStorageDirectoryName()

    at runtime::AppRunner/run()

    at ADLAppEntry/run()

    at global/runtime::ADLEntry()

I am guessing that AIR is not finding a location that it is expecting under my staged user folder.  Where is the "persistentStorageDirectory" that AIR uses by default?

Many thanks,

Trevor

This topic has been closed for replies.
Correct answer

Answering my own question...  By experiementing, I discovered that if I create the following folders under my staged USERPROFILE location, then the "Runtime/get persistentStorageDirectoryName()" error is avoided:

<USERPROFILE>/My Documents

<USERPROFILE>/Documents

<USERPROFILE>/AppData/Local

<USERPROFILE>/AppData/LocalLow

<USERPROFILE>/AppData/Roaming

I am not certain all are needed, but at least one of them is! 

1 reply

Correct answer
October 4, 2012

Answering my own question...  By experiementing, I discovered that if I create the following folders under my staged USERPROFILE location, then the "Runtime/get persistentStorageDirectoryName()" error is avoided:

<USERPROFILE>/My Documents

<USERPROFILE>/Documents

<USERPROFILE>/AppData/Local

<USERPROFILE>/AppData/LocalLow

<USERPROFILE>/AppData/Roaming

I am not certain all are needed, but at least one of them is!