From 187d0d2262a3850c1b7e68ac36554ac2271f538e Mon Sep 17 00:00:00 2001 From: forhad013 Date: Thu, 24 Oct 2024 06:38:19 +0800 Subject: [PATCH] Fix FileCodec (#133) --- .../commonMain/kotlin/io/github/xxfast/kstore/file/FileCodec.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kstore-file/src/commonMain/kotlin/io/github/xxfast/kstore/file/FileCodec.kt b/kstore-file/src/commonMain/kotlin/io/github/xxfast/kstore/file/FileCodec.kt index 6e4631a..fa973ed 100644 --- a/kstore-file/src/commonMain/kotlin/io/github/xxfast/kstore/file/FileCodec.kt +++ b/kstore-file/src/commonMain/kotlin/io/github/xxfast/kstore/file/FileCodec.kt @@ -24,7 +24,7 @@ import kotlinx.serialization.json.io.encodeToSink as encode */ public inline fun FileCodec( file: Path, - tempFile: Path = Path("${file.name}.temp"), + tempFile: Path = Path("$file.temp"), json: Json = DefaultJson, ): FileCodec = FileCodec( file = file,