Error when using wg(raw) with URI from Set Global Var with Mode = Write file

Reproduction steps:

  • Create a text global: test
  • Create a flow
    • Trigger > Manual
    • Action > Formula: $df(S)$
    • Action > Set Global Var: test, Mode: Write file
  • Add a text element: $wg(gv(test), raw)$
  • Trigger the flow

Expected: The text element should display the value set in the flow.

Actual:

err: java.io.ioexception: unable to read file: /data/user/0/org.kustom.wallpaper/cache/flows/[id]/[id].task