function getUserDataPath()

in src/plugin/utils/file_storage.ts [22:31]


function getUserDataPath() {
  if (!wx.env) {
    // only for tests. If not, test failed in miniprogram-simulate compiler
    wx.env = {
      USER_DATA_PATH:
          'http://usr',  // value of wx.env.USER_DATA_PATH in simulate
    };
  }
  return wx.env.USER_DATA_PATH;
}