Skip to main content

Get app data path (app.data_path)

Declaration

path = app.data_path(bid)

Parameters

  • bid
    String. App bundle identifier. You can find it in XXT App -> More -> App List.

Returns

  • path
    String | nil. The app's data (Documents) path, or nil if the app does not exist.

Notes

  • Get the app's data path.

Example

path = app.data_path("com.tencent.mqq") -- get QQ data path