Akshay Verma
10/11/2021, 7:43 AMvfsFile.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 methodDeactivated User
10/11/2021, 8:48 AMAkshay Verma
10/11/2021, 8:49 AMval vfsFile = localVfs(path)
vfsFile.writeString("Hello World!")
override fun getRootDir(): String {
val nsUserDomainMask = 1UL
val nsCachesDirectory = 13UL
val cacheDirectoryList = NSFileManager.defaultManager().URLsForDirectory(
nsCachesDirectory,
nsUserDomainMask
)
return (cacheDirectoryList.first() as? NSURL)?.path() ?: ""
}
Deactivated User
10/18/2021, 7:35 PM