Skip to main content

Module inboard

Module inboard 

Source
Expand description

Reading an Inboard backup folder for import, as Eagle’s File ▸ Import ▸ Inboard does.

The folder holds InboardBackup.json with folders (each with a title) and items, plus the files in images/ and screenshots/. Eagle creates one top-level folder per Inboard folder (all of them, in order; when two share a title, items go to the later one), then imports every item of type "image" whose file exists: the file is the last path component of the item’s path, looked up in screenshots/ when that path runs through a /screenshots/ folder and in images/ otherwise. The item keeps Inboard’s title as its name, its tags, its url, its trashed state (isTrashed other than 0) and its date as the date added.

Structs§

InboardBackup
What an Inboard backup holds.
InboardItem
One image to import.

Constants§

INDEX
The backup’s index file.

Functions§

folder_map
Which folder id each title maps to after creating one folder per entry of titles (ids in the same order): a repeated title maps to the last folder made with it, as in Eagle.
is_backup
Whether dir is an Inboard backup folder.
read
Reads the backup in dir.