Skip to content

How to get Source from a file path in commonMain #708

@VVictorWang

Description

@VVictorWang

Hi, I'm trying to use okio-multiplatform in my kotlin-multiplatform project for I/O. I'm wondering how can I get Source from a file path in commonMain? The examples provided are all getting Source from a jvm File. I mean, all examples provided only runs for jvm environment. So there's any way for us to operate file I/O in commonMain?

versions for okio-multiplatform: 2.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions