Thanks for that! Also found this works:
localPath = "cdvfile://localhost/persistent/mydir/myfile.txt"
In the filesystem URL above, the "persistent" directory seems to be special and required; initial attempts at using "cdvfile://localhost/myfile.txt" failed. Couldn't find documentation on this...