okio icon indicating copy to clipboard operation
okio copied to clipboard

A modern I/O library for Android, Java, and Kotlin Multiplatform.

Results 148 okio issues
Sort by recently updated
recently updated
newest added

Okio behaves weirdly with folders named like `X: Something` on at least MacOS Arm64 and Linux X64. You can easily reproduce the issue in a Gradle project with native targets:...

file system

Wanted to pop in and ask about the possibility of always opening descriptors with the `O_CLOEXEC` flag, or utilizing the `e` flag with `fopen`. EDIT: Can sling up a PR...

``` okio.PipeKotlinTest[jvm] > honorsUnderlyingSinkDeadlineOnFlushingWhenItIsSmaller[jvm] FAILED java.lang.AssertionError: expected: but was: at org.junit.Assert.fail(Assert.java:89) at org.junit.Assert.failNotEquals(Assert.java:835) at org.junit.Assert.assertEquals(Assert.java:555) at org.junit.Assert.assertEquals(Assert.java:685) at okio.PipeKotlinTest.assertDuration(PipeKotlinTest.kt:831) at okio.PipeKotlinTest.honorsUnderlyingSinkDeadlineOnFlushingWhenItIsSmaller(PipeKotlinTest.kt:469) ```

tests
PR welcome

``` okio.SocketTimeoutTest[jvm] > writeWithTimeout[jvm] FAILED java.lang.AssertionError: elapsed: 751618625 at org.junit.Assert.fail(Assert.java:89) at org.junit.Assert.assertTrue(Assert.java:42) at okio.SocketTimeoutTest.writeWithTimeout(SocketTimeoutTest.kt:81) ```

tests
PR welcome

``` okio.AwaitSignalTest[jvm] > signaled[BASE][jvm] FAILED java.lang.AssertionError: expected: but was: at org.junit.Assert.fail(Assert.java:89) at org.junit.Assert.failNotEquals(Assert.java:835) at org.junit.Assert.assertEquals(Assert.java:555) at org.junit.Assert.assertEquals(Assert.java:685) at okio.AwaitSignalTest.assertElapsed(AwaitSignalTest.kt:208) at okio.AwaitSignalTest.signaled(AwaitSignalTest.kt:57) ```

tests
PR welcome

Avoid unnecessary memory copying, during transfer data between streams.

``` okio.PipeTest[jvm] > sourceBlocksOnSlowWriter[jvm] FAILED java.lang.AssertionError: expected: but was: at org.junit.Assert.fail(Assert.java:89) at org.junit.Assert.failNotEquals(Assert.java:835) at org.junit.Assert.assertEquals(Assert.java:555) at org.junit.Assert.assertEquals(Assert.java:685) at okio.PipeTest.assertElapsed(PipeTest.kt:356) at okio.PipeTest.sourceBlocksOnSlowWriter(PipeTest.kt:343) ```

tests
PR welcome

In PR #1535 I upgraded Okio to build with Kotlin 2.x. To get this building I needed to suppress Android lint like so: ``` tasks.withType { onlyIf { false }...

``` okio.WasiFileSystemTest.listOnRelativePathWhichIsNotDotReturnsRelativePaths[wasmWasi, node] FAILED ErrnoException: loop okio.WasiFileSystemTest.listOrNullOnRelativePathWhichIsNotDotReturnsRelativePaths[wasmWasi, node] FAILED ErrnoException: loop ``` https://github.com/square/okio/actions/runs/11182275912/job/31089954720?pr=1529

tests
file system
PR welcome