mirror of
https://github.com/tsolomko/SWCompression.git
synced 2026-06-23 14:56:41 +00:00
Small text/comments-related changes
This commit is contained in:
+2
-2
@@ -64,10 +64,10 @@ fastlane/Preview.html
|
||||
fastlane/screenshots
|
||||
fastlane/test_output
|
||||
|
||||
# Ignore symbolic link to swcomp executable built by SPM.
|
||||
# Ignore symbolic link to swcomp executable built by SPM
|
||||
/swcomp
|
||||
|
||||
# Ignore Package.resolved, because there is no dependencies by default for this package.
|
||||
# Ignore Package.resolved, because we don't want to fix dependencies' versions
|
||||
Package.resolved
|
||||
|
||||
# Ignore docs generated by SourceKitten
|
||||
|
||||
@@ -28,6 +28,7 @@ public enum ContainerEntryType {
|
||||
/// Entry type is unknown.
|
||||
case unknown
|
||||
|
||||
/// This initalizer's semantics assume conversion from UNIX type, which, by definition, doesn't have `unknown` type.
|
||||
init?(_ unixType: UInt32) {
|
||||
switch unixType {
|
||||
case 0o010000:
|
||||
|
||||
@@ -9,8 +9,7 @@ import SWCompression
|
||||
extension ContainerEntryInfo where Self: CustomStringConvertible {
|
||||
|
||||
public var description: String {
|
||||
var output = ""
|
||||
output += "Name: \(self.name)\n"
|
||||
var output = "Name: \(self.name)\n"
|
||||
|
||||
switch self.type {
|
||||
case .blockSpecial:
|
||||
|
||||
@@ -9,10 +9,12 @@ import SWCompression
|
||||
extension GzipHeader: CustomStringConvertible {
|
||||
|
||||
public var description: String {
|
||||
var output = ""
|
||||
output += "File name: \(self.fileName ?? "")\n"
|
||||
output += "File system type: \(self.osType)\n"
|
||||
output += "Compression method: \(self.compressionMethod)\n"
|
||||
var output = """
|
||||
File name: \(self.fileName ?? "")
|
||||
File system type: \(self.osType)
|
||||
Compression method: \(self.compressionMethod)
|
||||
|
||||
"""
|
||||
if let mtime = self.modificationTime {
|
||||
output += "Modification time: \(mtime)\n"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user