KaliumFileSystemImpl

internal actual class KaliumFileSystemImpl(dataStoragePaths: DataStoragePaths, dispatcher: KaliumDispatcher) : KaliumFileSystem
internal actual class KaliumFileSystemImpl(dataStoragePaths: DataStoragePaths, dispatcher: KaliumDispatcher) : KaliumFileSystem
internal expect class KaliumFileSystemImpl(dataStoragePaths: DataStoragePaths, dispatcher: KaliumDispatcher = KaliumDispatcherImpl) : KaliumFileSystem
internal actual class KaliumFileSystemImpl(dataStoragePaths: DataStoragePaths, dispatcher: KaliumDispatcher) : KaliumFileSystem

Constructors

Link copied to clipboard
actual constructor(dataStoragePaths: DataStoragePaths, dispatcher: KaliumDispatcher)
actual constructor(dataStoragePaths: DataStoragePaths, dispatcher: KaliumDispatcher)
expect constructor(dataStoragePaths: DataStoragePaths, dispatcher: KaliumDispatcher = KaliumDispatcherImpl)
actual constructor(dataStoragePaths: DataStoragePaths, dispatcher: KaliumDispatcher)

Properties

Link copied to clipboard
actual open override val rootCachePath: Path

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

actual open override val rootCachePath: Path

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

expect open override val rootCachePath: Path

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

actual open override val rootCachePath: Path

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

Link copied to clipboard
actual open override val rootDBPath: Path

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

actual open override val rootDBPath: Path

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

expect open override val rootDBPath: Path

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

actual open override val rootDBPath: Path

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: Path, targetPath: Path)

Copies effectively the content of sourcePath into targetPath

actual open override fun copy(sourcePath: Path, targetPath: Path)

Copies effectively the content of sourcePath into targetPath

expect open override fun copy(sourcePath: Path, targetPath: Path)

Copies effectively the content of sourcePath into targetPath

actual open override fun copy(sourcePath: Path, targetPath: Path)

Copies effectively the content of sourcePath into targetPath

Link copied to clipboard
actual open override fun createDirectories(dir: Path)

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: Path)

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: Path)

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: Path)

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: Path, mustCreate: Boolean = false)

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

actual open override fun createDirectory(dir: Path, mustCreate: Boolean = false)

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

expect open override fun createDirectory(dir: Path, mustCreate: Boolean = false)

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

actual open override fun createDirectory(dir: Path, mustCreate: Boolean = false)

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

Link copied to clipboard
actual open override fun delete(path: Path, mustExist: Boolean = false)

This will delete the content of the given path

actual open override fun delete(path: Path, mustExist: Boolean = false)

This will delete the content of the given path

expect open override fun delete(path: Path, mustExist: Boolean = false)

This will delete the content of the given file path

actual open override fun delete(path: Path, mustExist: Boolean = false)

This will delete the content of the given path

Link copied to clipboard
actual open override fun deleteContents(dir: Path, mustExist: Boolean = false)

This will delete recursively the given dir and all its content

actual open override fun deleteContents(dir: Path, mustExist: Boolean = false)

This will delete recursively the given dir and all its content

expect open override fun deleteContents(dir: Path, mustExist: Boolean = false)

This will delete recursively the given dir and all its content

actual open override fun deleteContents(dir: Path, mustExist: Boolean = false)

This will delete recursively the given dir and all its content

Link copied to clipboard
actual open override fun exists(path: Path): Boolean

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

actual open override fun exists(path: Path): Boolean

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

expect open override fun exists(path: Path): Boolean

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

actual open override fun exists(path: Path): 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: Path): List<Path>

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: Path): List<Path>

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: Path): List<Path>

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: Path): List<Path>

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): Path

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): Path

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): Path

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): Path

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: Path): ByteArray

Reads the data of the given path as a byte array

actual open suspend override fun readByteArray(inputPath: Path): ByteArray

Reads the data of the given path as a byte array

expect open suspend override fun readByteArray(inputPath: Path): ByteArray

Reads the data of the given path as a byte array

actual open suspend override fun readByteArray(inputPath: Path): ByteArray

Reads the data of the given path as a byte array

Link copied to clipboard
actual open override fun selfUserAvatarPath(): Path

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

actual open override fun selfUserAvatarPath(): Path

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

expect open override fun selfUserAvatarPath(): Path

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

actual open override fun selfUserAvatarPath(): Path

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

Link copied to clipboard
actual open override fun sink(outputPath: Path, mustCreate: Boolean = false): Sink

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

actual open override fun sink(outputPath: Path, mustCreate: Boolean = false): Sink

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

expect open override fun sink(outputPath: Path, mustCreate: Boolean = false): Sink

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

actual open override fun sink(outputPath: Path, mustCreate: Boolean = false): Sink

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

Link copied to clipboard
actual open override fun size(path: Path): Long?
actual open override fun size(path: Path): Long?
expect open override fun size(path: Path): Long?
actual open override fun size(path: Path): Long?
Link copied to clipboard
actual open override fun source(inputPath: Path): Source

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

actual open override fun source(inputPath: Path): Source

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

expect open override fun source(inputPath: Path): Source

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

actual open override fun source(inputPath: Path): Source

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? = null): Path

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

actual open override fun tempFilePath(pathString: String? = null): Path

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

expect open override fun tempFilePath(pathString: String? = null): Path

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

actual open override fun tempFilePath(pathString: String? = null): Path

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: Sink, dataSource: Source): Long

Writes the data contained on dataSource into the provided outputSink

actual open suspend override fun writeData(outputSink: Sink, dataSource: Source): Long

Writes the data contained on dataSource into the provided outputSink

expect open suspend override fun writeData(outputSink: Sink, dataSource: Source): Long

Writes the data contained on dataSource into the provided outputSink

actual open suspend override fun writeData(outputSink: Sink, dataSource: Source): Long

Writes the data contained on dataSource into the provided outputSink