https://kotlinlang.org logo
Title
d

Dragos Rachieru

02/19/2023, 10:21 AM
Is there a way to know when a file has been modified? I know hot to do it in Java, but is there a library to do it mpp?
u

ursus

02/19/2023, 11:01 AM
calculate a hash?
a

Adam S

02/19/2023, 11:02 AM
I looked into this a couple of months ago but I couldn't find anything. Okio doesn't have any functionality for watching. I started making Kotlin/Native bindings for fswatch, and got a basic implementation working, but then I realised I didn't need it! What platforms did you want to target?
d

Dragos Rachieru

02/19/2023, 11:10 AM
I'm thinking about native and js
I want to create a file editor in compose multiplatform, I'm not sure if I can watch files in a browser