aboutsummaryrefslogtreecommitdiff
path: root/src/epub.rs
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2026-03-03 12:52:18 +0300
committerA Farzat <a@farzat.xyz>2026-03-03 13:14:05 +0300
commitdc57dd6437e36fe3bca44cda623879f2b701371d (patch)
treef2ed36763e81fa9f88317b41947cbcfeba5975e9 /src/epub.rs
parent09b76f2bd136bfa41a0d13e698cc8c651ede0892 (diff)
downloadoreilly-epub-dc57dd6437e36fe3bca44cda623879f2b701371d.tar.gz
oreilly-epub-dc57dd6437e36fe3bca44cda623879f2b701371d.zip
Revert "Add a function to write mimetype"
This reverts commit 6aad662ec59a3974cbca6c423c1e08e8bc5e90f6. There is no need to write it out to epub_root as it needs to be manually written to the zip file later on anyway. Not including it saves us the trouble of avoiding it when walking epub_root later.
Diffstat (limited to 'src/epub.rs')
-rw-r--r--src/epub.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/epub.rs b/src/epub.rs
index 6f736de..d86fa35 100644
--- a/src/epub.rs
+++ b/src/epub.rs
@@ -33,14 +33,6 @@ pub async fn write_container_xml(dest_root: &Path, opf_full_path: &str) -> Resul
Ok(())
}
-/// Creates and writes the mimetype. Assumes dest_root already exists.
-pub async fn write_mimetype(dest_root: &Path) -> Result<()> {
- let dest_path = dest_root.join("mimetype");
- let mut file = File::create(dest_path).await?;
- file.write_all(b"application/epub+zip").await?;
- Ok(())
-}
-
pub async fn download_all_files(
client: &Client,
file_entries: &[FileEntry],