Package

fs2.io

file

Permalink

package file

Provides support for working with files.

Source
file.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. file
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait FileHandle[F[_]] extends AnyRef

    Permalink

    Provides the ability to read/write/lock/inspect a file in the effect F.

    Provides the ability to read/write/lock/inspect a file in the effect F.

    To construct a FileHandle, use the methods in the fs2.io.file.pulls object.

Value Members

  1. object pulls

    Permalink

    Provides various Pulls for working with files.

  2. def readAll[F[_]](path: Path, chunkSize: Int)(implicit arg0: Suspendable[F]): Stream[F, Byte]

    Permalink

    Reads all data synchronously from the file at the specified java.nio.file.Path.

  3. def readAllAsync[F[_]](path: Path, chunkSize: Int, executorService: Option[ExecutorService] = None)(implicit F: Async[F]): Stream[F, Byte]

    Permalink

    Reads all data asynchronously from the file at the specified java.nio.file.Path.

  4. def writeAll[F[_]](path: Path, flags: Seq[StandardOpenOption] = List(StandardOpenOption.CREATE))(implicit arg0: Suspendable[F]): Sink[F, Byte]

    Permalink

    Writes all data synchronously to the file at the specified java.nio.file.Path.

    Writes all data synchronously to the file at the specified java.nio.file.Path.

    Adds the WRITE flag to any other OpenOption flags specified. By default, also adds the CREATE flag.

  5. def writeAllAsync[F[_]](path: Path, flags: Seq[StandardOpenOption] = List(StandardOpenOption.CREATE), executorService: Option[ExecutorService] = None)(implicit F: Async[F]): Sink[F, Byte]

    Permalink

    Writes all data asynchronously to the file at the specified java.nio.file.Path.

    Writes all data asynchronously to the file at the specified java.nio.file.Path.

    Adds the WRITE flag to any other OpenOption flags specified. By default, also adds the CREATE flag.

Inherited from AnyRef

Inherited from Any

Ungrouped