Enumeration
FileType
public enum FileType: UInt32, Codable, Equatable, CaseIterable
FileType
specifies the type of file in an archive.
Documentation comments are taken from FreeBSD's man pages.
Relationships
Conforms To
CaseIterable
Codable
Equatable
UInt32
Enumeration Cases
sticky
case sticky = 0o1000
Sticky bit. On some systems, this modifies the behavior of executables and/or directories.
symlink
case symlink = 0o120000
File type value for symbolic links. For symbolic links, the link body is stored as file data.
type
case type = 0o170000
This masks the file type bits.
if (reader.headers[0].mode.rawValue & FileType.type.rawValue) == FileType.regular.rawValue {
// reader.headers[0] describes a file.
}
permissions
case permissions = 0o777
The lower 9 bits specify read/write/execute permissions for world, group, and user following standard POSIX conventions.