【发布时间】:2021-07-10 23:02:27
【问题描述】:
我正在使用新的(ish)File System Access API,我需要删除一个文件。我打算使用remove() method,但它已被弃用。 File System Access API 中目前是否支持删除文件的功能?
【问题讨论】:
标签: javascript html5-filesystem native-file-system-api-js
我正在使用新的(ish)File System Access API,我需要删除一个文件。我打算使用remove() method,但它已被弃用。 File System Access API 中目前是否支持删除文件的功能?
【问题讨论】:
标签: javascript html5-filesystem native-file-system-api-js
你应该试试这个:
https://wicg.github.io/file-system-access/#api-filesystemdirectoryhandle-removeentry
removeEntry() 方法
【讨论】: