Path

harness.zio.Path
See thePath companion object
trait Path

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def child(childPath: String): IO[FailedToGetChild, Path]
def children: IO[FailedToGetChildren, Chunk[Path]]
def delete: IO[FailedToDelete, Unit]
def deleteIfExists: IO[FailedToDelete, Boolean]
def exists: IO[UnableToGetProperty, Boolean]
def inputStream: ZIO[Scope, UnableToCreateInputStream, InputStream]
def isDirectory: IO[UnableToGetProperty, Boolean]
def isFile: IO[UnableToGetProperty, Boolean]
def optParent: IO[FailedToGetParent, Option[Path]]
def outputStream: ZIO[Scope, UnableToCreateOutputStream, OutputStream]
def pathName: Name
def readBytes: IO[UnableToReadFromFile, Array[Byte]]
def readString: IO[UnableToReadFromFile, String]
def setLastModifiedTime(millis: Long): IO[UnableToSetProperty, Unit]
def show: String
def size: IO[UnableToGetProperty, Long]
def writeBytes(bytes: Array[Byte]): IO[UnableToWriteToFile, Unit]
def writeString(string: String): IO[UnableToWriteToFile, Unit]

Concrete methods

final inline def ensureExists: IO[UnableToGetProperty | PathDNE, Unit]
final inline def ensureIsFile: IO[UnableToGetProperty | PathDNE | PathIsNotAFile, Unit]
final inline def parent: IO[FailedToGetParent | PathParentDNE, Path]
final inline def readJson[T](implicit decoder: JsonDecoder[T]): IO[UnableToReadFromFile | UnableToDecodeFileContents, T]
final override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
final inline def writeJson[T](t: T)(implicit encoder: JsonEncoder[T]): IO[UnableToWriteToFile, Unit]