FileHandle

public extension FileHandle

Extensions on FileHandle that work with Path rather than String or URL

  • Initializes this FileHandle for reading at the location of the provided path.

    Declaration

    Swift

    @inlinable
    convenience init<P>(forReadingAt path: P) throws where P : Pathish
  • Initializes this FileHandle for writing at the location of the provided path.

    Declaration

    Swift

    @inlinable
    convenience init<P>(forWritingAt path: P) throws where P : Pathish
  • Initializes this FileHandle for reading and writing at the location of the provided path.

    Declaration

    Swift

    @inlinable
    convenience init<P>(forUpdatingAt path: P) throws where P : Pathish