Web 用の新しいファイル システム アクセス API で開いたフォルダーのすべてのファイルとディレクトリを読み取る必要があります。ディレクトリを読み取ることはできますが、エレガントな方法で再帰的に続行する方法がわかりません
try {
const directoryHandle = await window.showDirectoryPicker()
const files = []
for await (let [name, handle] of directoryHandle) {
const kind = handle.kind
files.push({
name,
handle,
kind,
})
}