FileType
The type of a file system object.
struct FileType
The type of a file system object.
struct FileType
import _NIOFileSystem
A file system library for Swift.
struct FileInfo
Information about a file system object.
protocol CaseIterable
A type that provides a collection of all of its values.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
A thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
init(direntType: UInt8)
Initializes a file type from the d_type
from dirent
.
init(platformSpecificMode: CInterop.Mode)
Initializes a file type from a CInterop.Mode
.
static var allCases: [FileType] { get }
static var block: FileType { get }
Hardware block device.
static var character: FileType { get }
Hardware character device.
static var directory: FileType { get }
Directory.
static var fifo: FileType { get }
FIFO (or named pipe).
static var regular: FileType { get }
Regular file.
static var socket: FileType { get }
Socket.
static var symlink: FileType { get }
Symbolic link.
static var unknown: FileType { get }
A file of unknown type.
static var whiteout: FileType { get }
Whiteout file.
var description: String { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.