Skip to content

//core/com.petersamokhin.vksdk.core.io/FileOnDisk

FileOnDisk

[common]\ class FileOnDisk

Cross-platform representation of a File

Currently supported only for Darwin, JS and JVM

[darwin, mingw]\ class FileOnDisk

Cross-platform representation of a File

[js]\ data class FileOnDisk

Cross-platform representation of a File

Currently supported only for Darwin, JS and JVM

[jvm]\ data class FileOnDisk

Cross-platform representation of a File

[linux]\ class FileOnDisk

Cross-platform representation of a File

Linux

Constructors

FileOnDisk [darwin]
fun FileOnDisk(path: String)
FileOnDisk [js]
fun FileOnDisk(path: String)
FileOnDisk [jvm]
fun FileOnDisk(path: String)
FileOnDisk [linux]
fun FileOnDisk(path: String)
FileOnDisk [mingw]
fun FileOnDisk(path: String)

Functions

Name Summary
readContent [common, darwin, js, jvm, linux, mingw]
[common, darwin, js, jvm, linux, mingw]
fun readContent(): ByteArray?
Read file contents as byte array synchronously

Properties

Name Summary
path [common, darwin, js, jvm, linux, mingw]
val path: String
Path to the file on disk