폴더가 선택되었는지 여부
선택된 폴더 이름
폴더 선택 다이얼로그 표시
성공 여부
상대 경로로 파일 가져오기
상대 경로
File 객체 또는 null
Returns the file handle for a relative path without reading its bytes. 상대 경로의 파일 핸들을 바이트 읽기 없이 반환합니다.
Relative path within the selected directory 선택된 디렉토리 내 상대 경로
The matching file handle, or null when the path is unknown
일치하는 파일 핸들, 경로를 찾을 수 없으면 null
워커 로딩 PoC v2 경로 전용입니다. 메인 스레드에서 .bin/이미지 바이트를 읽어
워커로 structured-clone 복사(대용량 복사 → OOM)하는 대신, 파일 핸들만 워커로
postMessage하여 워커가 handle.getFile()→arrayBuffer()로 바이트를 직접 읽게
합니다. 바이트가 워커에서 태어나므로 메인→워커 복사가 0입니다. 핸들은 이미
_fileMap에 상주하므로 이 조회는 동기적이며 I/O가 없습니다. 경로 해석은
getFile과 동일한 정규화/대체 경로 규칙을 재사용합니다.
Worker-loading PoC v2 path. Instead of the main thread reading .bin/image
bytes and structured-clone-copying them into the worker (large copy → OOM),
only the file handle is posted to the worker, which reads the bytes itself via
handle.getFile()→arrayBuffer() (bytes born in the worker, zero copy). The
handle already resides in _fileMap, so this lookup is synchronous with no
I/O. Path resolution reuses the same normalization/alternative-path rules as
getFile.
상대 경로로 Blob URL 생성
상대 경로
Blob URL 또는 null
Creates a Blob URL and returns the file size in a single file handle read. 단일 파일 핸들 조회로 Blob URL과 파일 크기를 함께 반환합니다.
Relative path within the selected directory 선택된 디렉토리 내 상대 경로
Blob URL and byte size, or null if the file is unavailable
Blob URL과 바이트 크기, 파일을 찾을 수 없으면 null
특정 확장자의 파일 목록 조회
Optionalextensions: string[]확장자 목록 (e.g., ['.json', '.gltf'])
파일 정보 배열
JSON 파일 목록 조회
3D 모델 파일 목록 조회
생성된 Blob URL 모두 해제
리소스 정리
File System Access API 래퍼