Skip to content

feat: Import a whole folder of MIBs at once - #20

Merged
shmuto merged 1 commit into
mainfrom
claude/gifted-cannon-23kjyb
Sep 12, 2026
Merged

shmuto merged 1 commit into
mainfrom
claude/gifted-cannon-23kjyb

Conversation

@shmuto

@shmuto shmuto commented Sep 11, 2026

Copy link
Copy Markdown
Owner

A dropped folder used to arrive as a single unreadable entry in
dataTransfer.files, so dropping a MIB directory imported nothing.

The drop handler now takes the File System entries of the drop before
awaiting anything (the item list is cleared once the handler returns) and
walks every directory entry down to its files, subdirectories included.
readEntries is called until it returns an empty batch, so a folder with
more than the 100 entries Chrome hands back per call is read in full. A
"Select folder" button gives the same import through a picker.

A folder of MIBs also holds readmes, licenses and archives. Those are not
upload failures, so a file that holds no MIB module is counted as skipped
in the summary instead of being reported as an error; a real failure is
still surfaced as before. Dotfiles and dot-directories are never read.

Co-Authored-By: Claude Opus 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01KeKzWHahL8hTUedqLLzx9T

A dropped folder used to arrive as a single unreadable entry in
dataTransfer.files, so dropping a MIB directory imported nothing.

The drop handler now takes the File System entries of the drop before
awaiting anything (the item list is cleared once the handler returns) and
walks every directory entry down to its files, subdirectories included.
readEntries is called until it returns an empty batch, so a folder with
more than the 100 entries Chrome hands back per call is read in full. A
"Select folder" button gives the same import through a picker.

A folder of MIBs also holds readmes, licenses and archives. Those are not
upload failures, so a file that holds no MIB module is counted as skipped
in the summary instead of being reported as an error; a real failure is
still surfaced as before. Dotfiles and dot-directories are never read.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KeKzWHahL8hTUedqLLzx9T
@shmuto
shmuto merged commit e77c98b into main Sep 12, 2026
4 checks passed
@shmuto
shmuto deleted the claude/gifted-cannon-23kjyb branch September 12, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants