File

public struct File: Equatable, Hashable

A particular source file that is part of a translation unit.

  • Retrieve the complete file and path name of the given file.

    Declaration

    Swift

    public var name: String
  • Retrieve the last modification time of the given file.

    Declaration

    Swift

    public var lastModified: Date
  • Retrieves the unique identifier for this file. If it failed, returns nil.

    Declaration

    Swift

    public var uniqueID: UniqueFileID?
  • Determines if two files are equal.

    Declaration

    Swift

    public static func ==(lhs: File, rhs: File) -> Bool
  • A unique integer value representing this file.

    Declaration

    Swift

    public var hashValue: Int