package file
- Alphabetic
- By Inheritance
- file
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
FileHandle
[F[_]] extends AnyRef
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
-
def
readAll[F[_]](path: Path, chunkSize: Int)(implicit arg0: Suspendable[F]): Stream[F, Byte]
Reads all data synchronously from the file at the specified
java.nio.file.Path. -
def
readAllAsync[F[_]](path: Path, chunkSize: Int, executorService: Option[ExecutorService] = None)(implicit F: Async[F]): Stream[F, Byte]
Reads all data asynchronously from the file at the specified
java.nio.file.Path. -
def
writeAll[F[_]](path: Path, flags: Seq[StandardOpenOption] = List(StandardOpenOption.CREATE))(implicit arg0: Suspendable[F]): Sink[F, Byte]
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
OpenOptionflags specified. By default, also adds the CREATE flag. -
def
writeAllAsync[F[_]](path: Path, flags: Seq[StandardOpenOption] = List(StandardOpenOption.CREATE), executorService: Option[ExecutorService] = None)(implicit F: Async[F]): Sink[F, Byte]
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
OpenOptionflags specified. By default, also adds the CREATE flag. -
object
pulls
Provides various
Pulls for working with files.