File

public class File : FSItem

Undocumented

  • Undocumented

    Declaration

    Swift

    public convenience init(name: String, extension ext: String? = nil, in folder: Folder)
  • Undocumented

    Declaration

    Swift

    public override init(url: URL)
  • Name of this file without the path extension

    Declaration

    Swift

    public var fileName: String { get }
  • Undocumented

    Declaration

    Swift

    public var folder: Folder { get }
  • Undocumented

    Declaration

    Swift

    public var exists: Bool { get }
  • Undocumented

    Declaration

    Swift

    public var size: FileSize { get }
  • Undocumented

    Declaration

    Swift

    @discardableResult
    public func touch() throws -> Bool
  • Undocumented

    Declaration

    Swift

    public func delete() throws
  • Undocumented

    Declaration

    Swift

    public func copy(to destination: File, overwrite: Bool = false) throws
  • Undocumented

    Declaration

    Swift

    public func read() throws -> Data
  • Undocumented

    Declaration

    Swift

    public func move(to destination: File, overwrite: Bool = false) throws