septag / dmon

Single header C99 portable library for monitoring filesystem changes. (Windows/Linux/MacOS)
BSD 2-Clause "Simplified" License
235 stars 19 forks source link

File path inconsistency #9

Closed waypar closed 3 years ago

waypar commented 3 years ago

Hey, I've just noticed an inconsistency between linux and windows, windows seems to just have the filename in the callback filepath, where linux has the full file path. What is the desired behaviour? Thanks, Wayne

septag commented 3 years ago

oh no! expected behavior is to give you relative paths, that's why we have rootdir argument in the callback. check out the latest commit 48234fc2a42e699b7f210df994ecbdb95bffb846, I fixed it for linux. probably more testing needs to be done.