Skip to content

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.

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 modeWhat it createsUse when
Folder as BookOne 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 BookOne book per file. Folder structure is ignored.Only for a flat ebook dump with no sidecar files and no multi-format grouping needed.

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.jpg

If 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.jpg

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.mobi

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.

One audio file in its own folder.

Audiobooks/
Project Hail Mary/
Project Hail Mary.m4b
cover.jpg
The Martian/
The Martian.mp3
cover.jpg

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.jpg

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.jpg

Recognized 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.

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.jpg

Both files become part of the same book record.


Use Folder as Book. One folder per title or issue.

Comics/
Watchmen/
Watchmen.cbz
cover.jpg
Batman - Year One/
Batman - Year One.cbr
cover.jpg

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.cbz

Sidecar files live in the same folder as the book and are associated with it automatically. They do not become separate book records.

The file extension can be jpg, jpeg, png, webp, gif, or bmp. The filename (without extension) must be one of:

FilenameNotes
coverRecommended - most universally recognized
folderCommon in audiobook rips
thumbnail
artwork
front

Any other image in the folder - back-cover.jpg, author.png, map.webp - is ignored.

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.


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.epub

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.

PatternWhat it skips
samplesAny file or folder named exactly samples
*.tmpAny file ending in .tmp
*_sample.*Files like Dune_sample.epub
extrasA folder named extras

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.


A multi-file audiobook was split into separate books

Section titled “A multi-file audiobook was split into separate books”
  1. 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.
  2. Check that all tracks are in the same folder. Each subfolder becomes its own book unless it has a recognized disc name.
  3. Check disc subfolder names. Only CD N, Disc N, Disk N, Part N, and Side N are flattened. Volume 1, Book 1, and spelled-out names like Part One are 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, or front (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.

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.