Serialization

Provides functionality for serializing and deserializing file paths and handling metadata related to file paths. Implements the FileSystemProvider.Serialization interface for Path type.

Functions

Link copied to clipboard
open suspend override fun extension(path: Path): String

Retrieves the file extension of the specified path.

Link copied to clipboard
open override fun fromAbsoluteString(path: String): Path

Converts the given absolute file path string to a normalized Path object.

Link copied to clipboard
open override fun fromRelativeString(base: Path, path: String): Path

Converts a relative string representation of a path into a normalized Path object based on the provided base Path.

Link copied to clipboard
open suspend override fun name(path: Path): String

Retrieves the name of the given file path.

Link copied to clipboard
open override fun toAbsolutePathString(path: Path): String

Converts the given path to its absolute path representation as a string. The path is normalized before being converted.

Link copied to clipboard
open override fun toPathString(path: Path): String

Converts the given Path to a normalized string representation. This function is deprecated and should be replaced by the toAbsolutePathString method.