Skip to main content

Get jailbreak-root path for a system-root path (jbroot)

Declaration​

jbPath = jbroot(sysRootPath)

Parameters​

  • sysRootPath
    String. A path under the system root.

Returns​

  • jbPath
    String. The jailbreak-root path corresponding to sysRootPath.

Description​

On roothide and rootless editions of XXTouch, this returns an absolute path that accesses the specified path under the jailbreak root.
On rootful or TrollStore editions, this simply returns the input parameter.
Available since version 1.3.8 or later.

Example​

nLog(jbroot('/')) -- /var/containers/Bundle/Application/.jbroot-XXXXXXXXXXXXXXXX/