truncate

    Truncate the existing file.

    OpenOptions.swift:167
    case truncate

    Setting this is equivalent to opening a file with O_TRUNC.

    Other cases

    • case none

      Indicates that no file exists. If a file does exist then an error is thrown when opening the file.

    • case open

      Any existing file should be opened without modification.