사소한 리팩토링

This commit is contained in:
static
2025-01-18 12:48:01 +09:00
parent d0d4afd2c3
commit da47a07da7
5 changed files with 7 additions and 13 deletions

View File

@@ -17,7 +17,7 @@ const getFileHandle = async (path: string, create = true) => {
}
try {
let directoryHandle: FileSystemDirectoryHandle = rootHandle;
let directoryHandle = rootHandle;
for (const part of parts.slice(0, -1)) {
if (!part) continue;
directoryHandle = await directoryHandle.getDirectoryHandle(part, { create });