Documentation
¶
Overview ¶
Package harmonica provides primitives for editing comic ebooks.
Index ¶
Constants ¶
View Source
const Version = "0.0.10"
Version is semver.
Variables ¶
This section is empty.
Functions ¶
func GetDirectorySizeBytes ¶
GetDirectorySizeBytes totals directory content file size recursively, measured in bytes.
Types ¶
type Config ¶
type Config struct {
// Source denotes a file path (required, nonblank).
Source string
// Prefix denotes a target basename.
Prefix string
// ExpandSource denotes whether to treat the source initially as a ZIP format archive.
// If so, attempt to expand the archive.
// Assume that the archive follows a convention
// of nesting all of its entries in an envelope directory,
// with the directory name identical to the archive path minus the archive file extension.
ExpandSource bool
// Assets denotes a collection of boilerplate asset files to copy into each batch.
Assets []string
// BatchLimitEntries denotes a cap on the number of files in each batch.
// 0 indicates unbounded.
BatchLimitEntries uint
// BatchLimitMiB denotes a cap on the (uncompressed) content size in each batch.
// 0 indicates unbounded.
BatchLimitMiB uint
// BatchCompressionExtension denotes an optional ZIP format file extension,
// E.g. "zip", "cbz", "jar".
// Blank indicates no compression.
BatchCompressionExtension string
// contains filtered or unexported fields
}
Config models a Harmonica operation.
func (Config) BeyondBatchCapacity ¶
BeyondBatchCapacity reports whether the current batch is too full to receive additional files.
Click to show internal directories.
Click to hide internal directories.