Library File Structure
How you organize files on disk determines what BookOrbit imports. This page covers the recommended layouts for every library type, what sidecar files are recognized, and how to handle real-world collections.
The golden rule
Section titled “The golden rule”Every library has a scan mode chosen during setup. That mode must match how your files are laid out on disk - everything else follows from it.
| Scan mode | What it creates | Use when |
|---|---|---|
| Folder as Book | One book per folder. All files inside are grouped together. | Almost always. Required for audiobooks, multi-format books, and any library with cover or OPF sidecar files. |
| File as Book | One book per file. Folder structure is ignored. | Only for a flat ebook dump with no sidecar files and no multi-format grouping needed. |
Ebooks
Section titled “Ebooks”Use Folder as Book with one subfolder per book. Inside each folder, put the book file, an optional cover image, and an optional OPF metadata sidecar.
Ebooks/ Dune/ Dune.epub cover.jpg Dune.opf Project Hail Mary/ Project Hail Mary.epub cover.jpgIf you have the same book in multiple formats, put them all in the same folder. BookOrbit groups them into one book and uses the library’s Format priority to decide which is primary. You can read in any available format from the book detail view.
Ebooks/ The Hobbit/ The Hobbit.epub The Hobbit.mobi The Hobbit.pdf cover.jpgFlat ebook collections (File as Book)
Section titled “Flat ebook collections (File as Book)”If your entire collection is a single folder of files with no subfolders and no sidecar files, use File as Book mode instead. No subfolders needed.
Ebooks/ Dune.epub Foundation.epub The Hobbit.mobiAudiobooks
Section titled “Audiobooks”Always use Folder as Book for audiobooks. File as Book cannot group multiple tracks into one book and will not correctly import multi-disc libraries.
Single-file audiobook
Section titled “Single-file audiobook”One audio file in its own folder.
Audiobooks/ Project Hail Mary/ Project Hail Mary.m4b cover.jpg The Martian/ The Martian.mp3 cover.jpgMulti-track audiobook
Section titled “Multi-track audiobook”Multiple audio files in one folder are automatically grouped into one book. Files are sorted by filename for playback, so use zero-padded numbers to get the right order.
Audiobooks/ Dune/ 01 - Dune.mp3 02 - Dune.mp3 03 - Dune.mp3 cover.jpgMulti-disc audiobook
Section titled “Multi-disc audiobook”Put disc tracks in subfolders named with a recognized disc pattern. BookOrbit flattens them into the parent book automatically - no extra configuration needed.
Audiobooks/ The Way of Kings/ Disc 1/ 01 - Track.mp3 02 - Track.mp3 Disc 2/ 01 - Track.mp3 02 - Track.mp3 cover.jpgRecognized disc folder names (case-insensitive): CD 1, Disc 2, Disk 3, Part A, Side IV. The number can be a digit, letter, or roman numeral.
Audiobook with companion ebook
Section titled “Audiobook with companion ebook”If you have both an audio file and an ebook for the same title, use a subfolder named exactly after the audio file’s stem. BookOrbit absorbs the subfolder into the parent book.
Audiobooks/ Dune/ Dune.m4b Dune/ ← same name as the .m4b stem - gets absorbed Dune.epub cover.jpgBoth files become part of the same book record.
Comics
Section titled “Comics”Use Folder as Book. One folder per title or issue.
Single-volume or graphic novel
Section titled “Single-volume or graphic novel”Comics/ Watchmen/ Watchmen.cbz cover.jpg Batman - Year One/ Batman - Year One.cbr cover.jpgMulti-issue series
Section titled “Multi-issue series”Give each issue its own folder so they appear as individual books in the library. Use zero-padded issue numbers in folder and file names to keep them in order.
Comics/ The Sandman/ The Sandman 001/ The Sandman 001.cbz The Sandman 002/ The Sandman 002.cbz The Sandman 003/ The Sandman 003.cbzSidecar files
Section titled “Sidecar files”Sidecar files live in the same folder as the book and are associated with it automatically. They do not become separate book records.
Cover images
Section titled “Cover images”The file extension can be jpg, jpeg, png, webp, gif, or bmp. The filename (without extension) must be one of:
| Filename | Notes |
|---|---|
cover | Recommended - most universally recognized |
folder | Common in audiobook rips |
thumbnail | |
artwork | |
front |
Any other image in the folder - back-cover.jpg, author.png, map.webp - is ignored.
Metadata sidecar files
Section titled “Metadata sidecar files”Files with extension .opf or .nfo in the same folder are read as metadata sidecars. Whether they take precedence over embedded metadata depends on the library’s Source precedence order, set on the Metadata step during library creation.
Grouping folders
Section titled “Grouping folders”Your library folders can have intermediate grouping folders - for example, sorting books by author or genre. BookOrbit walks the entire folder tree and handles them correctly, as long as each actual book lives in its own leaf folder.
Ebooks/ Sci-Fi/ ← grouping folder, not a book Isaac Asimov/ ← grouping folder, not a book Foundation/ Foundation.epub I Robot/ I Robot.epub Fantasy/ Dune/ Dune.epubExclude patterns
Section titled “Exclude patterns”If your library folder contains non-book directories or files you want the scanner to ignore, add exclude patterns on the library’s Scanner step. Patterns are matched against the file or folder name only - not the full path.
| Pattern | What it skips |
|---|---|
samples | Any file or folder named exactly samples |
*.tmp | Any file ending in .tmp |
*_sample.* | Files like Dune_sample.epub |
extras | A folder named extras |
Tips and tricks
Section titled “Tips and tricks”Set your scan mode before importing. Changing from File as Book to Folder as Book (or vice versa) after books are already imported forces a full rescan and can change which files are treated as books vs sidecars. Choose the right mode during library creation.
Multiple formats in one folder are always better than separate libraries. If you have both EPUB and MOBI versions of a book, keep them in the same folder. BookOrbit shows them as one book with multiple available formats.
Keep the Book Dock folder separate from your library folders. The Book Dock staging folder is managed internally by BookOrbit. Adding it as a library folder will cause duplicate imports.
Troubleshooting
Section titled “Troubleshooting”A multi-file audiobook was split into separate books
Section titled “A multi-file audiobook was split into separate books”- Check the scan mode. File as Book creates one record per file by design. Switch to Folder as Book under Settings > Libraries > Edit > Scanner and re-scan.
- Check that all tracks are in the same folder. Each subfolder becomes its own book unless it has a recognized disc name.
- Check disc subfolder names. Only
CD N,Disc N,Disk N,Part N, andSide Nare flattened.Volume 1,Book 1, and spelled-out names likePart Oneare treated as separate books - rename them and re-scan.
A sidecar cover or OPF is not being picked up
Section titled “A sidecar cover or OPF is not being picked up”- Confirm the cover filename is exactly one of:
cover,folder,thumbnail,artwork, orfront(with an image extension). Other image filenames are ignored. - Confirm the sidecar is in the same folder as the book file, not a parent or sibling folder.
- If you added the sidecar after the initial import, run a manual Scan - the watcher may not trigger a full folder re-import for sidecar-only changes.
Disc folders are creating separate books instead of one audiobook
Section titled “Disc folders are creating separate books instead of one audiobook”The subfolder name does not match the disc pattern. Rename it to Disc 1, CD 1, or Part 1 (numeral required - Part One does not match) and run a manual Scan.
A book appears twice
Section titled “A book appears twice”Two different folder paths are being treated as separate books. This usually happens when a file exists both at the library root and inside a subfolder. Remove the duplicate file and re-scan.