Cross-platform file representation for Kotlin Multiplatform
PlatformFile
is the core class in FileKit that provides a unified representation of files across all platforms. It abstracts away platform-specific file implementations and provides a consistent API for working with files in your Kotlin Multiplatform project.
PlatformFile
instance in several ways:
PlatformFile
provides several properties to access file information:
PlatformFile
provides methods for common file operations:
resolve
method or the /
operator to navigate through directories:
PlatformFile
provides built-in integration with kotlinx-io.