Package-level declarations

Types

Link copied to clipboard
actual typealias AccessDeniedException = <Error class: unknown class>
Link copied to clipboard
expect enum AccessMode : Enum<AccessMode>

Access modes for checking the accessibility of a file.

actual typealias AccessMode = <Error class: unknown class>
actual enum AccessMode : Enum<AccessMode>
Link copied to clipboard
actual typealias AtomicMoveNotSupportedException = <Error class: unknown class>
Link copied to clipboard

Basic options for copying or moving a file.

Link copied to clipboard

Basic options for opening a directory stream.

Link copied to clipboard

Basic options for opening content of a file.

Link copied to clipboard
interface CopyFileOption

Options for copying or moving a file.

Link copied to clipboard

Options for creating a file.

Link copied to clipboard
interface DirectoryEntry

A directory entry.

Link copied to clipboard

A directory entry with additional file metadata information.

Link copied to clipboard

A directory entry with additional file type information.

Link copied to clipboard
actual typealias DirectoryNotEmptyException = <Error class: unknown class>
Link copied to clipboard

A stream of entries in a directory.

Link copied to clipboard

Options for opening a directory stream.

Link copied to clipboard
actual typealias FileAlreadyExistsException = <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard

Options for opening content of a file.

Link copied to clipboard
interface FileMetadata
Link copied to clipboard

Options for opening or reading metadata of a file.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface FileSystem
Link copied to clipboard
expect open class FileSystemException : IOException
actual typealias FileSystemException = <Error class: unknown class>
actual open class FileSystemException : IOException
Link copied to clipboard
actual typealias FileSystemLoopException = <Error class: unknown class>
Link copied to clipboard

A registry for file systems.

Link copied to clipboard
expect class FileTime : Comparable<FileTime>
actual typealias FileTime = <Error class: unknown class>
actual class FileTime(val millis: Long, val excessNanos: Long) : Comparable<FileTime>
Link copied to clipboard
Link copied to clipboard

Options for handling a symbolic link.

Link copied to clipboard
actual typealias NoSuchFileException = <Error class: unknown class>
Link copied to clipboard
actual typealias NotDirectoryException = <Error class: unknown class>
Link copied to clipboard
actual typealias NotLinkException = <Error class: unknown class>
Link copied to clipboard
class Path : Comparable<Path>

A hierarchical identifier for a file in a file system.

Link copied to clipboard
Link copied to clipboard

A relative hierarchical identifier that can be resolved against a path.

Link copied to clipboard
class Uri : Comparable<Uri>

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The registered platform file system, or null if none is registered.

Link copied to clipboard

Functions

Link copied to clipboard
expect fun AccessDeniedException(file: String? = null, otherFile: String? = null, reason: String? = null, cause: Throwable? = null): AccessDeniedException
actual fun AccessDeniedException(file: String?, otherFile: String?, reason: String?, cause: Throwable?): AccessDeniedException
actual fun AccessDeniedException(file: String?, otherFile: String?, reason: String?, cause: Throwable?): AccessDeniedException
Link copied to clipboard
expect fun AtomicMoveNotSupportedException(source: String? = null, target: String? = null, reason: String? = null, cause: Throwable? = null): AtomicMoveNotSupportedException
Link copied to clipboard
inline suspend fun Path.checkAccess(vararg modes: AccessMode)
Link copied to clipboard
inline suspend fun Path.copyTo(target: Path, vararg options: CopyFileOption)
Link copied to clipboard
inline suspend fun Path.createDirectory(vararg options: CreateFileOption)
Link copied to clipboard
inline suspend fun Path.createHardLinkTo(existing: Path)
Link copied to clipboard
inline suspend fun Path.createSymbolicLinkTo(target: ByteString, vararg options: CreateFileOption)
Link copied to clipboard
inline suspend fun Path.delete()
Link copied to clipboard
inline suspend fun Path.deleteIfExists(): Boolean
Link copied to clipboard
expect fun DirectoryNotEmptyException(directory: String? = null, reason: String? = null, cause: Throwable? = null): DirectoryNotEmptyException
Link copied to clipboard
inline suspend fun Path.exists(noFollowLinks: Boolean = false): Boolean
Link copied to clipboard
expect fun FileAlreadyExistsException(file: String? = null, otherFile: String? = null, reason: String? = null, cause: Throwable? = null): FileAlreadyExistsException
actual fun FileAlreadyExistsException(file: String?, otherFile: String?, reason: String?, cause: Throwable?): FileAlreadyExistsException
actual fun FileAlreadyExistsException(file: String?, otherFile: String?, reason: String?, cause: Throwable?): FileAlreadyExistsException
Link copied to clipboard
expect fun FileSystemException(file: String? = null, otherFile: String? = null, reason: String? = null, cause: Throwable? = null): FileSystemException
actual fun FileSystemException(file: String?, otherFile: String?, reason: String?, cause: Throwable?): FileSystemException
actual fun FileSystemException(file: String?, otherFile: String?, reason: String?, cause: Throwable?): FileSystemException
Link copied to clipboard
expect fun FileSystemLoopException(file: String? = null, reason: String? = null, cause: Throwable? = null): FileSystemLoopException
Link copied to clipboard
fun Path.Companion.fromPlatformPath(platformPath: ByteString): Path
Link copied to clipboard
inline suspend fun Path.isAccessible(vararg modes: AccessMode): Boolean
Link copied to clipboard
inline suspend fun Path.isSameFileAs(other: Path): Boolean
Link copied to clipboard
inline suspend fun Path.moveTo(target: Path, vararg options: CopyFileOption)
Link copied to clipboard
expect fun NoSuchFileException(file: String? = null, otherFile: String? = null, reason: String? = null, cause: Throwable? = null): NoSuchFileException
actual fun NoSuchFileException(file: String?, otherFile: String?, reason: String?, cause: Throwable?): NoSuchFileException
actual fun NoSuchFileException(file: String?, otherFile: String?, reason: String?, cause: Throwable?): NoSuchFileException
Link copied to clipboard
expect fun NotDirectoryException(file: String? = null, reason: String? = null, cause: Throwable? = null): NotDirectoryException
actual fun NotDirectoryException(file: String?, reason: String?, cause: Throwable?): NotDirectoryException
actual fun NotDirectoryException(file: String?, reason: String?, cause: Throwable?): NotDirectoryException
Link copied to clipboard
inline suspend fun Path.notExists(noFollowLinks: Boolean = false): Boolean
Link copied to clipboard
expect fun NotLinkException(file: String? = null, otherFile: String? = null, reason: String? = null, cause: Throwable? = null): NotLinkException
actual fun NotLinkException(file: String?, otherFile: String?, reason: String?, cause: Throwable?): NotLinkException
actual fun NotLinkException(file: String?, otherFile: String?, reason: String?, cause: Throwable?): NotLinkException
Link copied to clipboard
inline suspend fun Path.openContent(vararg options: FileContentOption): FileContent
Link copied to clipboard
inline suspend fun Path.openDirectoryStream(vararg options: DirectoryStreamOption): DirectoryStream
Link copied to clipboard
inline suspend fun Path.openFileStore(): FileStore
Link copied to clipboard
inline suspend fun Path.openMetadataView(vararg options: FileMetadataOption): FileMetadataView
Link copied to clipboard
fun FileContent.openSink(position: Long = 0): AsyncSink
inline suspend fun Path.openSink(vararg options: FileContentOption = FileSystem.OPEN_SINK_OPTIONS_DEFAULT): AsyncSink
Link copied to clipboard
inline suspend fun Path.openSource(vararg options: FileContentOption): AsyncSource
Link copied to clipboard
inline suspend fun Path.readDirectory(vararg options: DirectoryStreamOption): List<Path>
Link copied to clipboard
inline suspend fun Path.readMetadata(vararg options: FileMetadataOption): FileMetadata
Link copied to clipboard
inline suspend fun Path.readSymbolicLink(): ByteString
Link copied to clipboard

Get a registered file system for a URI scheme, or throw an exception if none is registered.

Link copied to clipboard

Get the registered platform file system, or throw an exception if none is registered.

Link copied to clipboard
fun Path.toPlatformPath(): ByteString
Link copied to clipboard
Link copied to clipboard
inline suspend fun Path.toRealPath(): Path