File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
filekit-core/src/nonWebMain/kotlin/io/github/vinceglb/filekit Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 11<component name =" ProjectRunConfigurationManager" >
22 <configuration default =" false" name =" SampleCore Jvm" type =" GradleRunConfiguration" factoryName =" Gradle" >
33 <ExternalSystemSettings >
4+ <option name =" env" >
5+ <map >
6+ <entry key =" DEVELOPER_DIR" value =" /Applications/Xcode.app/Contents/Developer" />
7+ </map >
8+ </option >
49 <option name =" executionName" />
510 <option name =" externalProjectPath" value =" $PROJECT_DIR$" />
611 <option name =" externalSystemIdString" value =" GRADLE" />
Original file line number Diff line number Diff line change @@ -47,15 +47,15 @@ public actual suspend fun PlatformFile.readBytes(): ByteArray =
4747 this @readBytes
4848 .source()
4949 .buffered()
50- .readByteArray()
50+ .use { it. readByteArray() }
5151 }
5252
5353public actual suspend fun PlatformFile.readString (): String =
5454 withContext(Dispatchers .IO ) {
5555 this @readString
5656 .source()
5757 .buffered()
58- .readString()
58+ .use { it. readString() }
5959 }
6060
6161public suspend infix fun PlatformFile.write (bytes : ByteArray ): Unit =
You can’t perform that action at this time.
0 commit comments