Contents

fileStream(path:mode:options:permissions:)

Opens a new file descriptor using the given path and parameters, and creates a stream from the file descriptor.

Declaration

static func fileStream(path: FilePath, mode: FileDescriptor.AccessMode, options: FileDescriptor.OpenOptions, permissions: FilePermissions) -> ArchiveByteStream?

Parameters

  • path:

    The file path.

  • mode:

    The file descriptor access mode.

  • options:

    The file descriptor options that specify behavior on opening a file.

  • permissions:

    The file permission bits that govern access to a file.

Return Value

A new archive byte stream.

See Also

File Streaming