diff --git a/OsmAnd-shared/src/iosMain/kotlin/net/osmand/shared/io/NativeFile.kt b/OsmAnd-shared/src/iosMain/kotlin/net/osmand/shared/io/NativeFile.kt index ef4fc9ae61c..1a10b2bae11 100644 --- a/OsmAnd-shared/src/iosMain/kotlin/net/osmand/shared/io/NativeFile.kt +++ b/OsmAnd-shared/src/iosMain/kotlin/net/osmand/shared/io/NativeFile.kt @@ -5,6 +5,7 @@ import kotlinx.cinterop.ExperimentalForeignApi import kotlinx.cinterop.alloc import kotlinx.cinterop.memScoped import kotlinx.cinterop.ptr +import kotlinx.cinterop.value import platform.Foundation.NSDate import platform.Foundation.NSFileManager import platform.Foundation.NSFileModificationDate @@ -23,6 +24,7 @@ actual class NativeFile actual constructor(actual val file: KFile) { return memScoped { val isDirectory = alloc() NSFileManager.defaultManager.fileExistsAtPath(filePath, isDirectory.ptr) + isDirectory.value } }