DryRunFileSystem

class DryRunFileSystem(delegate: FileSystem) : ForwardingFileSystem

This FileSystem reads from its delegate but its writing operations do not produce anything.

Constructors

Link copied to clipboard
constructor(delegate: FileSystem)

Properties

Link copied to clipboard
val delegate: FileSystem

Functions

Link copied to clipboard
open override fun appendingSink(file: Path, mustExist: Boolean): Sink
fun appendingSink(file: Path): Sink
Link copied to clipboard
open override fun atomicMove(source: Path, target: Path)
Link copied to clipboard
open override fun canonicalize(path: Path): Path
Link copied to clipboard
open fun copy(source: Path, target: Path)
Link copied to clipboard
fun createDirectories(dir: Path)
fun createDirectories(dir: Path, mustCreate: Boolean)
Link copied to clipboard
fun createDirectory(dir: Path)
open override fun createDirectory(dir: Path, mustCreate: Boolean)
Link copied to clipboard
open override fun createSymlink(source: Path, target: Path)
Link copied to clipboard
fun delete(path: Path)
open override fun delete(path: Path, mustExist: Boolean)
Link copied to clipboard
fun deleteRecursively(fileOrDirectory: Path)
open fun deleteRecursively(fileOrDirectory: Path, mustExist: Boolean)
Link copied to clipboard
fun exists(path: Path): Boolean
Link copied to clipboard
open override fun list(dir: Path): List<Path>
Link copied to clipboard
open override fun listOrNull(dir: Path): List<Path>?
Link copied to clipboard
fun listRecursively(dir: Path): Sequence<Path>
open override fun listRecursively(dir: Path, followSymlinks: Boolean): Sequence<Path>
Link copied to clipboard
fun metadata(path: Path): FileMetadata
Link copied to clipboard
open override fun metadataOrNull(path: Path): FileMetadata?
Link copied to clipboard
open fun onPathParameter(path: Path, functionName: String, parameterName: String): Path
Link copied to clipboard
open fun onPathResult(path: Path, functionName: String): Path
Link copied to clipboard
open override fun openReadOnly(file: Path): FileHandle
Link copied to clipboard
open override fun openReadWrite(file: Path, mustCreate: Boolean, mustExist: Boolean): FileHandle
fun openReadWrite(file: Path): FileHandle
Link copied to clipboard
inline fun <T> read(file: Path, readerAction: BufferedSource.() -> T): T
Link copied to clipboard
open override fun sink(file: Path, mustCreate: Boolean): Sink
fun sink(file: Path): Sink
Link copied to clipboard
open override fun source(file: Path): Source
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
inline fun <T> write(file: Path, mustCreate: Boolean, writerAction: BufferedSink.() -> T): T