Functions

Link copied to clipboard
abstract suspend fun create(parent: Path, name: String, type: FileMetadata.FileType)
Link copied to clipboard
abstract suspend fun delete(parent: Path, name: String)
Link copied to clipboard
abstract suspend fun exists(path: Path): Boolean
Link copied to clipboard
abstract suspend fun extension(path: Path): String
Link copied to clipboard
abstract fun fromAbsoluteString(path: String): Path
Link copied to clipboard
abstract fun fromRelativeString(base: Path, path: String): Path
Link copied to clipboard
abstract suspend fun list(path: Path): List<Path>
Link copied to clipboard
abstract suspend fun metadata(path: Path): FileMetadata?
Link copied to clipboard
abstract suspend fun move(source: Path, target: Path)
Link copied to clipboard
abstract suspend fun name(path: Path): String
Link copied to clipboard
abstract suspend fun parent(path: Path): Path?
Link copied to clipboard
abstract suspend fun read(path: Path): ByteArray
Link copied to clipboard
open suspend fun relative(root: Path, path: Path): String?
Link copied to clipboard
abstract suspend fun relativize(root: Path, path: Path): String?
Link copied to clipboard
abstract suspend fun sink(path: Path, append: Boolean = false): Sink
Link copied to clipboard
abstract suspend fun size(path: Path): Long
Link copied to clipboard
abstract suspend fun source(path: Path): Source
Link copied to clipboard
abstract fun toAbsolutePathString(path: Path): String
Link copied to clipboard
abstract fun toPathString(path: Path): String

Performs path to string conversion.

Link copied to clipboard
abstract suspend fun write(path: Path, content: ByteArray)