```vfsFile.writeChunk(byteArray, offset = offset)`...
# korge
a
Copy code
vfsFile.writeChunk(byteArray, offset = offset)
this doesn't seem to be working in iOS (or any write methods be it as trivial as
writeString()
) The file creation is happening so there must be some problem inside write method
d
Which VFS are you using? Do you have a small snipptet reproducing the issue?
a
Copy code
val vfsFile = localVfs(path)
vfsFile.writeString("Hello World!")
getting path in iOS
Copy code
override fun getRootDir(): String {
    val nsUserDomainMask = 1UL
    val nsCachesDirectory = 13UL
    val cacheDirectoryList = NSFileManager.defaultManager().URLsForDirectory(
        nsCachesDirectory,
        nsUserDomainMask
    )

    return (cacheDirectoryList.first() as? NSURL)?.path() ?: ""
}
d
Just created this issue to investigate: https://github.com/korlibs/korge-next/issues/366