Akuma Isaac Akuma

Results 27 comments of Akuma Isaac Akuma

I'll be happy to help with [fs-watcher](https://github.com/Akumzy/fs-watcher)

Here is a screenshot @brentvatne, it just stays there nothing else happens ![Screenshot 2022-07-26 at 6 54 54 PM](https://user-images.githubusercontent.com/25849232/181077779-6eabb458-e184-4ee5-bc9c-5b1c95686d58.png)

Sorry I still don't understand what you're trying to say.

You can remove the directory from watcher before deleting it.

```go w.RemoveRecursive(path) //or w.Remove(path) ```

The event struct contains all the information your need using `event.FileInfo` or ```go file := fileInfo{ Size: event.Size(), Path: event.Path, Name: event.Name(), ModTime: event.ModTime(), Mode: event.Mode(), IsDir: event.IsDir()} ``` ```go...

Yeah is true when an event occurs at first two different events are being emitted one from the parent directory while the second one will be the real event source

So I used this to filter it out ```go if event.IsDir() && event.Op == watcher.Write { continue } ```