     public let groupID: Int?
     public let size: Int
     public let modificationTime: Date
-    private let type: String? // TODO: Make enum and public.
+    public let type: EntryType
 
     public let ownerUserName: String?
     public let ownerGroupName: String?

/// Represents either a file or directory entry inside TAR archive.
public class TarEntry: ContainerEntry {

    /// Name of the file or directory.
    public var name: String {
        return (self.fileNamePrefix ?? "") + (self.fileName ?? "")

        index += 8

        // File type
        type = EntryType(rawValue: String(bytes: [data[index]], encoding: .ascii)!) ?? .vendorUnknownOrReserved
        index += 1

        // Linked file name
