用 wx.getFileSystemManager().copyFile({ 读取文件失败
报{errMsg: "copyFile:fail no such file or directory, copyFile "data.txt""}
h @ VM3581 WAService.js:2
(anonymous) @ VM3581 WAService.js:2
v @ VM3581 WAService.js:2
(anonymous) @ VM3581 WAService.js:2
(anonymous) @ VM3579 asdebug.js:1
h @ VM3581 WAService.js:2
(anonymous) @ VM3581 WAService.js:2
(anonymous) @ VM3581 WAService.js:2
setTimeout (async)
setTimeout @ VM3581 WAService.js:2
(anonymous) @ VM3579 asdebug.js:1
C @ VM3579 asdebug.js:1
(anonymous) @ VM3579 asdebug.js:1
f @ VM3579 asdebug.js:1
p @ VM3579 asdebug.js:1
(anonymous) @ VM3579 asdebug.js:1
_ws.onmessage @ VM3579 asdebug.js:1
VM3581 WAService.js:2 {errMsg: "readFile:fail http://usr/data.txt not found"}
你好,请问得到解决了吗
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
srcPath: 'data.txt', //源文件
destPath: wx.env.USER_DATA_PATH + '/data.txt', //可操作的文件夹路径
success: res => {
console.log(res) //复制成功返回res信息
},
fail: console.error //复制失败返回error
})