Structureswift-nio 2.81.0_NIOFileSystem
DirectoryEntry
Information about an item within a directory.
struct DirectoryEntry
Information about an item within a directory.
struct DirectoryEntry
import _NIOFileSystem
A file system library for Swift.
struct DirectoryEntries
An AsyncSequence
of entries in a directory.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
init?(path: FilePath, type: FileType)
Creates a directory entry; returns nil
if path
has no components.
var name: FilePath.Component { get }
The name of the entry; the final component of the path
.
let path: FilePath
The path of the directory entry.
var type: FileType
The type of entry.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.