val Path.absolutePathAsString: String
Returns Path.toAbsolutePath.Path.toString. |
|
fun Path.appendBytes(array: ByteArray): Unit
Delegates to kotlin.io.appendBytes. |
|
fun Path.appendText(text: String, charset: Charset = Charsets.UTF_8): Unit |
|
fun Path.copyRecursively(target: Path, overwrite: Boolean = false, onError: (Path, IOException) -> OnErrorAction = { _, exception -> throw exception }): Boolean
Delegates to kotlin.io.copyRecursively. |
|
fun Path.copyTo(outputStream: OutputStream): Long
Delegates to Files.copy with overload for OutputStream. fun Path.copyTo(target: Path, vararg copyOptions: CopyOption): Path
Delegates to Files.copy. |
|
fun Path.createDirectories(vararg fileAttributes: FileAttribute<*>): Path
Delegates to Files.createDirectories. |
|
fun Path.createDirectory(vararg fileAttributes: FileAttribute<*>): Path
Delegates to Files.createDirectory. |
|
fun Path.createDirectoryIfNotExists(vararg fileAttributes: FileAttribute<*>): Path
Delegates to createDirectory and swallows a potential java.nio.file.FileAlreadyExistsException. |
|
fun Path.createFile(vararg fileAttributes: FileAttribute<*>): Path
Delegates to Files.createFile. |
|
fun Path.createFileIfNotExists(vararg fileAttributes: FileAttribute<*>): Path
Delegates to createFile and swallows a potential java.nio.file.FileAlreadyExistsException. |
|
fun Path.createLink(link: Path): Path
Creates a new link (directory entry) for this Path. Delegates to Files.createLink. |
|
fun Path.createSymbolicLink(link: Path, vararg fileAttributes: FileAttribute<*>): Path
Creates a symbolic link for this Path. Delegates to Files.createDirectory. |
|
fun Path.delete(): Unit
Delegates to Files.delete. |
|
fun Path.deleteIfExists(): Boolean
Delegates to Files.deleteIfExists. |
|
fun Path.deleteRecursively(): Boolean
Delegates to kotlin.io.deleteRecursively. |
|
val Path.exists: Boolean
Delegates to Files.exists. |
|
val Path.extension: String
Delegates to kotlin.io.extension. |
|
val Path.fileNameAsString: String
Returns Path.getFileName.Path.toString. |
|
val Path.fileNameWithoutExtension: String
Delegates to kotlin.io.nameWithoutExtension. |
|
val Path.fileStore: FileStore
Delegates to Files.getFileStore. |
|
fun Path.followSymbolicLink(): Path!
Assumes that this path Path.isSymbolicLink and delegates to Files.readSymbolicLink. |
|
fun Path.forEachBlock(action: (buffer: ByteArray, bytesRead: Int) -> Unit): Unitfun Path.forEachBlock(blockSize: Int, action: (buffer: ByteArray, bytesRead: Int) -> Unit): Unit
Delegates to kotlin.io.forEachBlock. |
|
fun Path.forEachLine(charset: Charset = Charsets.UTF_8, action: (line: String) -> Unit): Unit
Delegates to kotlin.io.forEachLine. |
|
fun Path.getAttribute(attribute: String, vararg linkOptions: LinkOption): Any
Delegates to Files.getAttribute. |
|
fun <V : FileAttributeView> Path.getFileAttributeView(vararg linkOptions: LinkOption): V?
Delegates to Files.getFileAttributeView. |
|
val Path.invariantSeparatorsPath: String
Delegates to kotlin.io.invariantSeparatorsPath. |
|
val Path.isDirectory: Boolean
Delegates to Files.isDirectory without LinkOptions. fun Path.isDirectory(linkOption: LinkOption, vararg furtherLinkOptions: LinkOption): Boolean
Delegates to Files.isDirectory. |
|
val Path.isExecutable: Boolean
Delegates to Files.isExecutable. |
|
val Path.isHidden: Boolean
Delegates to Files.isHidden. |
|
val Path.isReadable: Boolean
Delegates to Files.isReadable. |
|
val Path.isRegularFile: Boolean
Delegates to Files.isRegularFile without LinkOptions. fun Path.isRegularFile(linkOption: LinkOption, vararg furtherLinkOptions: LinkOption): Boolean
Delegates to Files.isRegularFile. |
|
val Path.isRooted: Boolean
Delegates to kotlin.io.isRooted. |
|
fun Path.isSameFile(other: Path): Boolean
Delegates to Files.isSameFile. |
|
val Path.isSymbolicLink: Boolean
Delegates to Files.isSymbolicLink. |
|
val Path.isWritable: Boolean
Delegates to Files.isWritable. |
|
val Path.lastModifiedTime: FileTime
Delegates to Files.getLastModifiedTime without LinkOptions. fun Path.lastModifiedTime(linkOption: LinkOption, vararg furtherLinkOptions: LinkOption): FileTime
Delegates to Files.getLastModifiedTime. |
|
fun Path.move(target: Path, vararg copyOptions: CopyOption): Path
Delegates to Files.move. |
|
val Path.
Delegates to kotlin.io.nameWithoutExtension. |
|
fun Path.newBufferedReader(charset: Charset = Charsets.UTF_8): BufferedReader
Delegates to Files.newBufferedReader. |
|
fun Path.newBufferedWriter(charset: Charset = Charsets.UTF_8, vararg openOptions: OpenOption): BufferedWriter
Delegates to Files.newBufferedWriter. |
|
fun Path.newByteChannel(vararg openOptions: OpenOption): SeekableByteChannelfun Path.newByteChannel(openOptions: Set<OpenOption>, vararg fileAttributes: FileAttribute<*>): SeekableByteChannel
Delegates to Files.newByteChannel. |
|
fun Path.newDirectory(dir: String, vararg fileAttributes: FileAttribute<*>): Path
Resolve the given dir and calls createDirectory. |
|
fun Path.newFile(file: String, vararg fileAttributes: FileAttribute<*>): Path
Resolve the given file and calls createDirectory. |
|
fun Path.newInputStream(vararg openOptions: OpenOption): InputStream
Delegates to Files.newInputStream. |
|
fun Path.newOutputStream(vararg openOptions: OpenOption): OutputStream
Delegates to Files.newOutputStream. |
|
val Path.notExists: Boolean
Delegates to Files.notExists without LinkOptions. fun Path.notExists(linkOption: LinkOption, vararg furtherLinkOptions: LinkOption): Boolean
Delegates to Files.notExists. |
|
val Path.owner: UserPrincipal
Delegates to Files.getLastModifiedTime without LinkOptions. fun Path.owner(linkOption: LinkOption, vararg furtherLinkOptions: LinkOption): UserPrincipal
Delegates to Files.getLastModifiedTime. |
|
val Path.posixFilePersmissions: Set<PosixFilePermission>
Delegates to Files.getPosixFilePermissions without LinkOptions. fun Path.posixFilePersmissions(linkOption: LinkOption, vararg furtherLinkOptions: LinkOption): MutableSet<PosixFilePermission!>!
Delegates to Files.getPosixFilePermissions. |
|
fun Path.printWriter(charset: Charset = Charsets.UTF_8): PrintWriter
Delegates to kotlin.io.printWriter. |
|
fun Path.probeContentType(): String
Delegates to Files.probeContentType. |
|
fun Path.readAllBytes(): ByteArray
Delegates to Files.readAllBytes. |
|
fun Path.readAllLines(charset: Charset = Charsets.UTF_8): List<String>
Delegates to Files.readAllLines. |
|
fun <A : BasicFileAttributes> Path.readAttributes(vararg linkOptions: LinkOption): Afun Path.readAttributes(attributes: String, vararg linkOptions: LinkOption): Map<String, Any>
Delegates to Files.readAttributes. |
|
fun Path.reader(charset: Charset = Charsets.UTF_8): InputStreamReader
Delegates to kotlin.io.reader. |
|
fun Path.readSymbolicLink(): Path!
Delegates to Files.readSymbolicLink. |
|
fun Path.readText(charset: Charset = Charsets.UTF_8): String
Converts Path.readAllBytes to a string using the given charset. |
|
fun Path.relativeTo(other: Path): Path
Delegates to kotlin.io.relativeToOrNull. |
|
fun Path.relativeToOrNull(other: Path): Path?
Delegates to kotlin.io.relativeToOrNull. |
|
fun Path.relativeToOrSelf(other: Path): Path
Delegates to kotlin.io.relativeToOrSelf. |
|
fun Path.resolve(dir: String, first: String, vararg more: String): Path
Converts the given dir, first and more into a Path and Path.resolves it. |
|
fun Path.setAttribute(attribute: String, value: Any, vararg linkOptions: LinkOption): Path!
Delegates to Files.setAttribute. |
|
fun Path.setLastModifiedTime(fileTime: FileTime): Path!
Delegates to Files.setLastModifiedTime. |
|
fun Path.setPosixFilePermissions(perms: Set<PosixFilePermission>): Path!
Delegates to Files.setPosixFilePermissions. |
|
val Path.size: Long
Delegates to Files.size. |
|
fun Path.toRelativeString(base: Path): String
Delegates to kotlin.io.toRelativeString. |
|
fun <T> Path.useLines(charset: Charset = Charsets.UTF_8, block: (Sequence<String>) -> T): T
Delegates to kotlin.io.useLines. |
|
fun Path.writeBytes(array: ByteArray, vararg openOptions: OpenOption): Path
Delegates to Files.write. |
|
fun Path.writeLines(lines: Iterable<CharSequence>, charset: Charset = Charsets.UTF_8, vararg openOptions: OpenOption): Path
Delegates to Files.write. |
|
fun Path.writer(charset: Charset = Charsets.UTF_8): OutputStreamWriter
Delegates to kotlin.io.writer. |
|
fun Path.writeText(text: String, charset: Charset = Charsets.UTF_8): Unit
Delegates to kotlin.io.writeText. |