[fix] empty dir fs watch
commit93746251ae2233031c52d730fb4e0632194bc601
authorafify <hassan@afify.dev>
Wed, 14 Oct 2020 13:41:17 +0000 (14 16:41 +0300)
committerafify <hassan@afify.dev>
Wed, 14 Oct 2020 13:41:17 +0000 (14 16:41 +0300)
tree18b6ff09785633e750b2e153c018f28b7704498a
parent26e53f038047df7ed3a420b7783d75757d55a3ac
[fix] empty dir fs watch

- problem: listdir() return if current dir is empty before adding watch
- solution: move addwatch() before empty dir return
sfm.c