사소한 리팩토링

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

No files matched your search

+1 -1
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 });