PlatformFileHandler

actual object PlatformFileHandler
expect object PlatformFileHandler
actual object PlatformFileHandler
actual object PlatformFileHandler
actual object PlatformFileHandler

Functions

Link copied to clipboard
actual suspend fun deleteFile(fileName: String)
expect suspend fun deleteFile(fileName: String)
actual suspend fun deleteFile(fileName: String)
actual suspend fun deleteFile(fileName: String)
actual suspend fun deleteFile(fileName: String)
Link copied to clipboard
actual suspend fun fileExists(fileName: String): Boolean
expect suspend fun fileExists(fileName: String): Boolean
actual suspend fun fileExists(fileName: String): Boolean
actual suspend fun fileExists(fileName: String): Boolean
actual suspend fun fileExists(fileName: String): Boolean
Link copied to clipboard
actual suspend fun getFile(fileName: String): ByteArray?
expect suspend fun getFile(fileName: String): ByteArray?
actual suspend fun getFile(fileName: String): ByteArray?
actual suspend fun getFile(fileName: String): ByteArray?
actual suspend fun getFile(fileName: String): ByteArray?
Link copied to clipboard
actual suspend fun getFilePlatformFile(fileName: String): PlatformFile?

Returns a PlatformFile reference to the file, or null if it doesn't exist.

expect suspend fun getFilePlatformFile(fileName: String): PlatformFile?

Returns a PlatformFile reference to the file, or null if it doesn't exist.

actual suspend fun getFilePlatformFile(fileName: String): PlatformFile?

Returns a PlatformFile reference to the file, or null if it doesn't exist.

actual suspend fun getFilePlatformFile(fileName: String): PlatformFile?

Returns a PlatformFile reference to the file, or null if it doesn't exist.

actual suspend fun getFilePlatformFile(fileName: String): PlatformFile?

Returns a PlatformFile reference to the file, or null if it doesn't exist.

Link copied to clipboard
actual suspend fun getFileStreaming(fileName: String): Flow<ByteArray>?

Returns a Flow that reads the file in chunks, or null if the file doesn't exist.

expect suspend fun getFileStreaming(fileName: String): Flow<ByteArray>?

Returns a Flow that reads the file in chunks, or null if the file doesn't exist.

actual suspend fun getFileStreaming(fileName: String): Flow<ByteArray>?

Returns a Flow that reads the file in chunks, or null if the file doesn't exist.

actual suspend fun getFileStreaming(fileName: String): Flow<ByteArray>?

Returns a Flow that reads the file in chunks, or null if the file doesn't exist.

actual suspend fun getFileStreaming(fileName: String): Flow<ByteArray>?

Returns a Flow that reads the file in chunks, or null if the file doesn't exist.

Link copied to clipboard
actual suspend fun listFiles(directory: String): List<String>?

Paths of the files directly inside directory (subdirectories are skipped), relative to the storage root, or null if the directory doesn't exist.

expect suspend fun listFiles(directory: String): List<String>?

Paths of the files directly inside directory (subdirectories are skipped), relative to the storage root, or null if the directory doesn't exist.

actual suspend fun listFiles(directory: String): List<String>?

Paths of the files directly inside directory (subdirectories are skipped), relative to the storage root, or null if the directory doesn't exist.

actual suspend fun listFiles(directory: String): List<String>?

Paths of the files directly inside directory (subdirectories are skipped), relative to the storage root, or null if the directory doesn't exist.

actual suspend fun listFiles(directory: String): List<String>?

Paths of the files directly inside directory (subdirectories are skipped), relative to the storage root, or null if the directory doesn't exist.

Link copied to clipboard
actual suspend fun saveFile(fileName: String, data: ByteArray)
expect suspend fun saveFile(fileName: String, data: ByteArray)
actual suspend fun saveFile(fileName: String, data: ByteArray)
actual suspend fun saveFile(fileName: String, data: ByteArray)
actual suspend fun saveFile(fileName: String, data: ByteArray)
Link copied to clipboard
actual suspend fun saveFileStreaming(fileName: String, data: Flow<ByteArray>)

Writes data to disk incrementally, without ever holding the full file in memory.

expect suspend fun saveFileStreaming(fileName: String, data: Flow<ByteArray>)

Writes data to disk incrementally, without ever holding the full file in memory.

actual suspend fun saveFileStreaming(fileName: String, data: Flow<ByteArray>)

Writes data to disk incrementally, without ever holding the full file in memory.

actual suspend fun saveFileStreaming(fileName: String, data: Flow<ByteArray>)

Writes data to disk incrementally, without ever holding the full file in memory.

actual suspend fun saveFileStreaming(fileName: String, data: Flow<ByteArray>)

Writes data to disk incrementally, without ever holding the full file in memory.