FileSystemEntry.remove() 替换?

问题描述

我正在使用 new(ish) File System Access API 并且我需要删除一个文件。我打算使用 remove() method,但它已被弃用。 File System Access API 目前是否支持删除文件功能

解决方法

你应该试试这个:

https://wicg.github.io/file-system-access/#api-filesystemdirectoryhandle-removeentry

removeEntry() 方法