示例代码
···js
wx.getFileSystemManager().copyFile({
srcPath: wx.env.USER_DATA_PATH + '/file',
destPath: wx.env.USER_DATA_PATH + '/directory',
success(res) {
console.log('success', res);
},
fail(err) {
// copyFile:fail copyFile failed
console.log('fail', err);
},
});
···