2026-07-25 12:39:32 +02:00
|
|
|
extension File {
|
|
|
|
|
/// Information about a file or directory, mirroring `FileStat`.
|
|
|
|
|
public struct Stat: Sendable {
|
2026-07-25 12:55:53 +02:00
|
|
|
/// Whether the path is a directory.
|
2026-07-25 12:39:32 +02:00
|
|
|
public let isDirectory: Bool
|
2026-07-25 12:55:53 +02:00
|
|
|
/// The file's size, in bytes.
|
2026-07-25 12:39:32 +02:00
|
|
|
public let size: UInt32
|
2026-07-25 12:55:53 +02:00
|
|
|
/// The time the file was last modified.
|
2026-07-25 12:39:32 +02:00
|
|
|
public let modified: System.DateTime
|
|
|
|
|
}
|
|
|
|
|
}
|