We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0dc45d commit a674cf4Copy full SHA for a674cf4
runtime/runtime-core/native/src/aws/smithy/kotlin/runtime/util/PlatformNative.kt
@@ -25,7 +25,10 @@ internal actual object SystemDefaultProvider : PlatformProvider {
25
actual override fun getenv(key: String): String? = platform.posix.getenv(key)?.toKString()
26
27
actual override val filePathSeparator: String
28
- get() = "/" // Unix-style separator is used in Native
+ get() = when (osInfo().family) {
29
+ OsFamily.Windows -> "\\"
30
+ else -> "/"
31
+ }
32
33
actual override suspend fun readFileOrNull(path: String): ByteArray? {
34
return try {
0 commit comments