sealed trait PosixFiles[F[_]] extends UnsealedReadFiles[F]
Enables interacting with the file system in a way modeled on Node.js fs module which in turn is modeled on standard POSIX functions.
- Source
- PosixFiles.scala
- See also
- Alphabetic
- By Inheritance
- PosixFiles
- UnsealedReadFiles
- ReadFiles
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def access(path: Path, mode: AccessMode = AccessMode.F_OK): F[Boolean]
- abstract def chmod(path: Path, mode: FileAccessMode): F[Unit]
- abstract def chown(path: Path, uid: Long, guid: Long): F[Unit]
- abstract def copyFile(src: Path, dest: Path, mode: CopyMode = CopyMode.Default): F[Unit]
- abstract def lchown(path: Path, uid: Long, guid: Long): F[Unit]
- abstract def link(existingPath: Path, newPath: Path): F[Unit]
- abstract def lstat(path: Path): F[Stats]
- abstract def mkdir(path: Path, recursive: Boolean = false, mode: FileAccessMode = FileAccessMode.Default): F[Path]
- abstract def mkdtemp(path: Path = Path.tmpdir, prefix: String = ""): Resource[F, Path]
- abstract def open(path: Path, flags: Flags = Flags.r, mode: FileAccessMode = FileAccessMode.OpenDefault): Resource[F, FileHandle[F]]
- abstract def opendir(path: Path): Stream[F, Path]
- abstract def readAll(path: Path, flags: Flags = Flags.r): Stream[F, Byte]
- abstract def readAll(path: Path, chunkSize: Int): Stream[F, Byte]
Reads all data from the file at the specified path.
Reads all data from the file at the specified path.
- Definition Classes
- ReadFiles
- abstract def readCursor(path: Path, flags: Flags = Flags.r): Resource[F, ReadCursor[F]]
- abstract def readCursor(path: Path): Resource[F, ReadCursor[F]]
Returns a
ReadCursorfor the specified path.Returns a
ReadCursorfor the specified path.- Definition Classes
- ReadFiles
- abstract def readRange(path: Path, chunkSize: Int, start: Long, end: Long): Stream[F, Byte]
Reads a range of data synchronously from the file at the specified path.
Reads a range of data synchronously from the file at the specified path.
startis inclusive,endis exclusive, so whenstartis 0 andendis 2, two bytes are read.- Definition Classes
- ReadFiles
- abstract def readlink(path: Path): F[Path]
- abstract def realpath(path: Path): F[Path]
- abstract def rename(oldPath: Path, newPath: Path): F[Unit]
- abstract def rm(path: Path, force: Boolean = false, maxRetries: Int = 0, recursive: Boolean = false, retryDelay: FiniteDuration = 100.milliseconds): F[Unit]
- abstract def rmdir(path: Path, maxRetries: Int = 0, retryDelay: FiniteDuration = 100.milliseconds): F[Unit]
- abstract def stat(path: Path): F[Stats]
- abstract def tail(path: Path, chunkSize: Int, offset: Long = 0L, pollDelay: FiniteDuration): Stream[F, Byte]
Returns an infinite stream of data from the file at the specified path.
Returns an infinite stream of data from the file at the specified path. Starts reading from the specified offset and upon reaching the end of the file, polls every
pollDurationfor additional updates to the file.Read operations are limited to emitting chunks of the specified chunk size but smaller chunks may occur.
If an error occurs while reading from the file, the overall stream fails.
- Definition Classes
- ReadFiles
- abstract def unlink(path: Path): F[Unit]
- abstract def walk(path: Path, maxDepth: Int = Int.MaxValue): Stream[F, Path]
- abstract def writeAll(path: Path, flags: Flags = Flags.w, mode: FileAccessMode = FileAccessMode.OpenDefault): Pipe[F, Byte, INothing]
- abstract def writeCursor(path: Path, flags: Flags = Flags.w, mode: FileAccessMode = FileAccessMode.OpenDefault): Resource[F, WriteCursor[F]]
- abstract def writeCursorFromFileHandle(file: FileHandle[F], append: Boolean): F[WriteCursor[F]]
- abstract def writeRotate(computePath: F[Path], limit: Long, flags: Flags = Flags.w, mode: FileAccessMode = FileAccessMode.OpenDefault): Pipe[F, Byte, INothing]
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated