TechieGuy12 / FileWatcher

A file and folder monitor that can send notifications, perform actions, or execute a command when a file or folder is changed.
MIT License
106 stars 27 forks source link

monitor a network share #18

Open gpadvorac opened 2 years ago

gpadvorac commented 2 years ago

This project looks very interesting, and I'll dive in and see if there's anything I can contribute.

You made the comment: "I don’t recommend using it to monitor a network share, such as a connection to a NAS."

I have a requirement to monitor network share drives (NAS). Why do you discourage this?

TechieGuy12 commented 2 years ago

The project uses the FileSystemWatcher class in .Net. I had read that it isn't recommended to monitor a network share in the past. I see that this may no longer be the case as I see this on the actual FileSystemWatcher class page from Microsoft:

You can create a component to watch files on a local computer, a network drive, or a remote computer.

Source: https://docs.microsoft.com/en-us/dotnet/api/system.io.filesystemwatcher?view=net-6.0#remarks

I haven't tried monitoring a network share, but you can go ahead and try to see if it works for you. If there aren't any issues, I'll retract the statement about monitoring network shares.

gpadvorac commented 2 years ago

Will do and thanks for the quick feedback! Willl keep you updated.