FileSystemManager.rmdir接口无效
发布于 4 年前 作者 jun59 4625 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

 file: wx.getFileSystemManager(),

this.file.rmdir({

      dirPath: this.path+"/database",

      recursive: true,

      success: function(res){

        console.log(res)

      },

      fail: function(res){

        console.log(res)

      }

    })

即使设置recursive: true

结果还是报错"rmdir:fail directory not empty"


是api bug吧,能不能解决一下,不然这一组api都废了,不方便

2 回复

rmdir 就是用来删除空目录的,这里和 node 的 fs.rmdir 是一样的

还没修复吗?太不严谨了!

回到顶部