Hey! Neither Okio, not kotlinx-io lets you query available space on a partition/volume corresponding to a particular path.
As a workaround, you can use platform-specific APIs for that.
For example, on JVM it would be
Files.getFileStore +
FileStore.getUsableSpace (didn't check it though, so it's better to double check)