All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.0 - 2021-07-21
- Added
FileMode.type
to get theFileType
fromFileMode
. - Added
FileMode.rawType
to get the file type bits fromFileMode
. - Added a
clear
parameter toCPIOArchiveWriter.finalize
, if set, this will reset the state of the writer so it can be used again. - Added CreateArchive, WriteArchive, and ExtractArchive to the examples.
- Removed
FileType.dir
. It has been renamed todirectory
.
Use FileMode.is(_:)
instead of isSymlink
, and isRegularFile
:
// Before
if header.mode.isSymlink {
// `header` describes a symbolic link.
}
// After
if header.mode.is(.symlink) {
// `header` describes a symbolic link.
}
0.0.3 - 2021-06-22
- Added
CPIOArchiveReaderIterator
.
0.0.2 - 2021-06-11
Header
now conforms toCodable
andEquatable
.CPIOArchiveReader
now has acount
property.
0.0.1 - 2021-05-16
Support reading and writing cpio
archives.