korlibs / korlibs/korge

Investigate korio writing file in iOS

Open
#573 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Kotlin
Stars
3k
Forks
148
Avg merge
13h 44m
Merged PRs (30d)
1

Description

https://kotlinlang.slack.com/archives/CJEF0LB6Y/p1633938221093600

```kotlin
val vfsFile = localVfs(getRootDir())["file.txt"]
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() ?: ""
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the sample using localVfs(getRootDir()), vfsFile.writeString("Hello World!"), and the NSFileManager-based getRootDir() shown in the issue. Trace the iOS file-writing path and document or test the expected successful write behavior once the cause is identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.