Skip to content

0.1.0

Latest
Compare
Choose a tag to compare
@LebJe LebJe released this 21 Jul 19:53
· 1 commit to main since this release
f97f35f

Changelog

0.1.0 - 2021-07-21

Added

  • Added FileMode.type to get the FileType from FileMode.
  • Added FileMode.rawType to get the file type bits from FileMode.
  • Added a clear parameter to CPIOArchiveWriter.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

  • Removed FileType.dir. It has been renamed to directory.

Migration Guide

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.
}