wx.getFileSystemManager
发布于 5 年前 作者 dyao 5048 次浏览 来自 问答

请问

getFileSystemManager

wx.getfilesystemmanager is not a function

日志显示不是一个函数

有人指点下么

2 回复
const fs = wx.getFileSystemManager()
fs.stat({  path: `${wx.env.USER_DATA_PATH}/testDir`,  success: res => {    console.log(res.stats.isDirectory())
  }
})

wx.getfilesystemmanager is not a function

回到顶部