console.log("文件路径")
console.log(this.files[0].toString())
let path = this.files[0].toString()
const resFile = fileIo.openSync(path, fileIo.OpenMode.READ_ONLY)
let newPath = getContext(this).cacheDir + "/" + resFile.name;
fileIo.copyFileSync(resFile.fd, newPath)
let realUri = "internal://cache/" + resFile.name;
console.log("沙箱路径1:"+realUri)
console.log("沙箱路径2:"+newPath)
复制沙箱路径
复制文件到沙箱路径
最新推荐文章于 2025-12-02 21:41:05 发布
1718

被折叠的 条评论
为什么被折叠?



