-
Notifications
You must be signed in to change notification settings - Fork 127
/
Copy pathRootFile.swift
35 lines (28 loc) · 1020 Bytes
/
RootFile.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// Copyright 2025 Readium Foundation. All rights reserved.
// Use of this source code is governed by the BSD-style license
// available in the top-level LICENSE file of the project.
//
import Foundation
/// RootFile (as called in Go).
/// Contains meta-informations about the Container containing the EPUB.
public struct RootFile {
/// For Epub : Path to the Epub file. (previously epubFilePath)
/// For EpubDirectory : The root directory path. (Previously rootPath)
public var rootPath: String
/// Path to the OPF file (rootFile).
public var rootFilePath: String
/// The mimetype.
public var mimetype: String
// The container version.
public var version: Double?
// MARK: - Public methods.
public init(rootPath: String, rootFilePath: String = "",
mimetype: String = "", version: Double? = nil)
{
self.rootPath = rootPath
self.rootFilePath = rootFilePath
self.mimetype = mimetype
self.version = version
}
}