wx.getFileSystemManager

发布于 6 年前作者 dyao5257 次浏览最后编辑 6 年前来自 ask

请问

getFileSystemManager

wx.getfilesystemmanager is not a function

日志显示不是一个函数

有人指点下么

2 回复
qiang36
qiang361 楼6 年前
const fs = wx.getFileSystemManager()
fs.stat({  path: `${wx.env.USER_DATA_PATH}/testDir`,  success: res => {    console.log(res.stats.isDirectory())
  }
})
chao89
chao892 楼4 年前

wx.getfilesystemmanager is not a function