KaliumFileSystemImpl

internal actual class KaliumFileSystemImpl : KaliumFileSystem
internal actual class KaliumFileSystemImpl
internal expect class KaliumFileSystemImpl : KaliumFileSystem
internal actual class KaliumFileSystemImpl : KaliumFileSystem

Constructors

Link copied to clipboard
actual constructor(dataStoragePaths: DataStoragePaths, dispatcher: <Error class: unknown class>)
actual constructor(dataStoragePaths: <Error class: unknown class>, dispatcher: <Error class: unknown class>)
expect constructor(dataStoragePaths: DataStoragePaths, dispatcher: <Error class: unknown class> = KaliumDispatcherImpl)
actual constructor(dataStoragePaths: DataStoragePaths, dispatcher: <Error class: unknown class>)

Properties

Link copied to clipboard
actual open override val rootCachePath: <Error class: unknown class>

Provides the root of the cache path, used to store temporary files

actual open val rootCachePath: <Error class: unknown class>

Provides the root of the cache path, used to store temporary files

expect open override val rootCachePath: <Error class: unknown class>

Provides the root of the cache path, used to store temporary files

actual open override val rootCachePath: <Error class: unknown class>

Provides the root of the cache path, used to store temporary files

Link copied to clipboard
actual open override val rootDBPath: <Error class: unknown class>

Provides the root of the current user database path, used to store all the Database information.

actual open val rootDBPath: <Error class: unknown class>

Provides the root of the current user database path, used to store all the Database information.

expect open override val rootDBPath: <Error class: unknown class>

Provides the root of the current user database path, used to store all the Database information.

actual open override val rootDBPath: <Error class: unknown class>

Provides the root of the current user database path, used to store all the Database information.

Functions

Link copied to clipboard
actual open override fun copy(sourcePath: <Error class: unknown class>, targetPath: <Error class: unknown class>)

Copies effectively the content of sourcePath into targetPath

actual open fun copy(sourcePath: <Error class: unknown class>, targetPath: <Error class: unknown class>)

Copies effectively the content of sourcePath into targetPath

expect open override fun copy(sourcePath: <Error class: unknown class>, targetPath: <Error class: unknown class>)

Copies effectively the content of sourcePath into targetPath

actual open override fun copy(sourcePath: <Error class: unknown class>, targetPath: <Error class: unknown class>)

Copies effectively the content of sourcePath into targetPath

Link copied to clipboard
actual open override fun createDirectories(dir: <Error class: unknown class>)

It will create the provided dir in the current file system along with the needed subdirectories if they were not created previously

actual open fun createDirectories(dir: <Error class: unknown class>)

It will create the provided dir in the current file system along with the needed subdirectories if they were not created previously

expect open override fun createDirectories(dir: <Error class: unknown class>)

It will create the provided dir in the current file system along with the needed subdirectories if they were not created previously

actual open override fun createDirectories(dir: <Error class: unknown class>)

It will create the provided dir in the current file system along with the needed subdirectories if they were not created previously

Link copied to clipboard
actual open override fun createDirectory(dir: <Error class: unknown class>, mustCreate: Boolean)

It will create the provided dir in the current file system. It will fail if the parent directory doesn't exist

actual open fun createDirectory(dir: <Error class: unknown class>, mustCreate: Boolean)

It will make sure the given dir gets created on the file system

expect open override fun createDirectory(dir: <Error class: unknown class>, mustCreate: Boolean)

It will make sure the given dir gets created on the file system

actual open override fun createDirectory(dir: <Error class: unknown class>, mustCreate: Boolean)

It will make sure the given dir gets created on the file system

Link copied to clipboard
actual open override fun delete(path: <Error class: unknown class>, mustExist: Boolean)

This will delete the content of the given path

actual open fun delete(path: <Error class: unknown class>, mustExist: Boolean)

This will delete the content of the given path

expect open override fun delete(path: <Error class: unknown class>, mustExist: Boolean)

This will delete the content of the given file path

actual open override fun delete(path: <Error class: unknown class>, mustExist: Boolean)

This will delete the content of the given path

Link copied to clipboard
actual open override fun deleteContents(dir: <Error class: unknown class>, mustExist: Boolean)

This will delete recursively the given dir and all its content

actual open fun deleteContents(dir: <Error class: unknown class>, mustExist: Boolean)

This will delete recursively the given dir and all its content

expect open override fun deleteContents(dir: <Error class: unknown class>, mustExist: Boolean)

This will delete recursively the given dir and all its content

actual open override fun deleteContents(dir: <Error class: unknown class>, mustExist: Boolean)

This will delete recursively the given dir and all its content

Link copied to clipboard
actual open override fun exists(path: <Error class: unknown class>): Boolean

Checks whether the given path is already created and exists on the current file system

actual open fun exists(path: <Error class: unknown class>): Boolean

Checks whether the given path is already created and exists on the current file system

expect open override fun exists(path: <Error class: unknown class>): Boolean

Checks whether the given path is already created and exists on the current file system

actual open override fun exists(path: <Error class: unknown class>): Boolean

Checks whether the given path is already created and exists on the current file system

Link copied to clipboard
actual open suspend override fun listDirectories(dir: <Error class: unknown class>): List<<Error class: unknown class>>

Provides a list of paths found in the given dir path from where the call is being invoked.

actual open suspend fun listDirectories(dir: <Error class: unknown class>): List<<Error class: unknown class>>

Provides a list of paths found in the given dir path from where the call is being invoked.

expect open suspend override fun listDirectories(dir: <Error class: unknown class>): List<<Error class: unknown class>>

Provides a list of paths found in the given dir path from where the call is being invoked.

actual open suspend override fun listDirectories(dir: <Error class: unknown class>): List<<Error class: unknown class>>

Provides a list of paths found in the given dir path from where the call is being invoked.

Link copied to clipboard
actual open override fun providePersistentAssetPath(assetName: String): <Error class: unknown class>

Creates a persistent path on the internal storage folder of the file system if it didn't exist before and returns it if successful

actual open fun providePersistentAssetPath(assetName: String): <Error class: unknown class>

Creates a persistent path on the internal storage folder of the file system if it didn't exist before and returns it if successful

expect open override fun providePersistentAssetPath(assetName: String): <Error class: unknown class>

Creates a persistent path on the internal storage folder of the file system if it didn't exist before and returns it if successful

actual open override fun providePersistentAssetPath(assetName: String): <Error class: unknown class>

Creates a persistent path on the internal storage folder of the file system if it didn't exist before and returns it if successful

Link copied to clipboard
actual open suspend override fun readByteArray(inputPath: <Error class: unknown class>): ByteArray

Reads the data of the given path as a byte array

actual open suspend fun readByteArray(inputPath: <Error class: unknown class>): ByteArray

Reads the data of the given path as a byte array

expect open suspend override fun readByteArray(inputPath: <Error class: unknown class>): ByteArray

Reads the data of the given path as a byte array

actual open suspend override fun readByteArray(inputPath: <Error class: unknown class>): ByteArray

Reads the data of the given path as a byte array

Link copied to clipboard
actual open override fun selfUserAvatarPath(): <Error class: unknown class>

Fetches the persistent Path of the current user's avatar in the KaliumFileSystem

actual open fun selfUserAvatarPath(): <Error class: unknown class>

Fetches the persistent Path of the current user's avatar in the KaliumFileSystem

expect open override fun selfUserAvatarPath(): <Error class: unknown class>

Fetches the persistent Path of the current user's avatar in the KaliumFileSystem

actual open override fun selfUserAvatarPath(): <Error class: unknown class>

Fetches the persistent Path of the current user's avatar in the KaliumFileSystem

Link copied to clipboard
actual open override fun sink(outputPath: <Error class: unknown class>, mustCreate: Boolean): <Error class: unknown class>

Opens an output stream that will be used to write the data on the given outputPath

actual open fun sink(outputPath: <Error class: unknown class>, mustCreate: Boolean): <Error class: unknown class>

Opens an output stream that will be used to write the data on the given outputPath

expect open override fun sink(outputPath: <Error class: unknown class>, mustCreate: Boolean): <Error class: unknown class>

Opens an output stream that will be used to write the data on the given outputPath

actual open override fun sink(outputPath: <Error class: unknown class>, mustCreate: Boolean): <Error class: unknown class>

Opens an output stream that will be used to write the data on the given outputPath

Link copied to clipboard
actual open override fun source(inputPath: <Error class: unknown class>): <Error class: unknown class>

Creates an input stream that will be used to read the data from the given inputPath

actual open fun source(inputPath: <Error class: unknown class>): <Error class: unknown class>

Creates an input stream that will be used to read the data from the given inputPath

expect open override fun source(inputPath: <Error class: unknown class>): <Error class: unknown class>

Creates an input stream that will be used to read the data from the given inputPath

actual open override fun source(inputPath: <Error class: unknown class>): <Error class: unknown class>

Creates an input stream that will be used to read the data from the given inputPath

Link copied to clipboard
actual open override fun tempFilePath(pathString: String?): <Error class: unknown class>

Creates a temporary path if it didn't exist before and returns it if successful

actual open fun tempFilePath(pathString: String?): <Error class: unknown class>

Creates a temporary path if it didn't exist before and returns it if successful

expect open override fun tempFilePath(pathString: String?): <Error class: unknown class>

Creates a temporary path if it didn't exist before and returns it if successful.

actual open override fun tempFilePath(pathString: String?): <Error class: unknown class>

Creates a temporary path if it didn't exist before and returns it if successful

Link copied to clipboard
actual open suspend override fun writeData(outputSink: <Error class: unknown class>, dataSource: <Error class: unknown class>): Long

Writes the data contained on dataSource into the provided outputSink

actual open suspend fun writeData(outputSink: <Error class: unknown class>, dataSource: <Error class: unknown class>): Long

Writes the data contained on dataSource into the provided outputSink

expect open suspend override fun writeData(outputSink: <Error class: unknown class>, dataSource: <Error class: unknown class>): Long

Writes the data contained on dataSource into the provided outputSink

actual open suspend override fun writeData(outputSink: <Error class: unknown class>, dataSource: <Error class: unknown class>): Long

Writes the data contained on dataSource into the provided outputSink