flymin's picture
Add files using upload-large-folder tool
80bd1fd verified
|
Raw
History Blame Contribute Delete
2.16 kB

Learning Books Repack Directory

This directory contains the repacked learning books archive set, the search manifest, and the summary report.

Files

  • data/: ZIP package directory. Each ZIP file is independent and can be opened or extracted on its own.
  • data/ebooks-0001.zip, data/ebooks-0002.zip, and so on: ZIP packages that preserve the original archive entry names, for example category/book-title.pdf.
  • manifest.sqlite: SQLite database for finding which ZIP package contains a file. It also stores size, compressed size, CRC32, modification time, extension, type category, subject category, and top-level folder metadata.
  • report.html: Standalone HTML report with file type, subject, size, deduplicated title/version, top-level folder, and ZIP package statistics. Charts are embedded as base64 data URIs.
  • README.md: This guide.

manifest.sqlite Tables

  • packages: One row per ZIP package, including rel_path, zip_size, uncompressed_size, compressed_size, and file_count.
  • files: One row per source file, including path, zip_path, entry_name, size, compressed_size, crc32, mtime_utc, extension, type_category, subject_category, and top_dir.
  • duplicate_paths: Diagnostic records for duplicate exposed archive paths. The duplicate path was packaged once.

Manifest Examples

-- 1. Find which ZIP package contains a file.
SELECT path, zip_path, entry_name
FROM files
WHERE path LIKE '%keyword%';

-- 2. Count files and total size by extension.
SELECT extension, COUNT(*) AS file_count, SUM(size) AS total_size
FROM files
GROUP BY extension
ORDER BY file_count DESC;

-- 3. List ZIP package sizes.
SELECT rel_path, file_count, zip_size
FROM packages
ORDER BY rel_path;

-- 4. List the largest PDF files.
SELECT path, zip_path, size, mtime_utc
FROM files
WHERE extension = '.pdf'
ORDER BY size DESC
LIMIT 50;

-- 5. Filter books by subject category.
SELECT subject_category, path, zip_path
FROM files
WHERE subject_category = '<subject_category>'
ORDER BY path
LIMIT 100;

-- 6. Check duplicate exposed archive paths.
SELECT path, note
FROM duplicate_paths
ORDER BY path;