{"repo":"wgross/fswatcher-engine-event","free":true,"listed":false,"github":"https://github.com/wgross/fswatcher-engine-event","clone":"git clone https://github.com/wgross/fswatcher-engine-event.git","description":"Publishes changes in file system as powershell engine event","language":"C#","stars":72,"topics":["powershell","filesystemwatcher"],"license":"MIT","category":"cli-tools","readme_excerpt":"FSWatcherEngineEvent is a Powershell module which notifies of filesystem changes using a Powershell engine events. For a quick walkthru: https://devblogs.microsoft.com/powershell-community/a-reusable-file-system-event-watcher-for-powershell/ A new event handler can be created with the cmdlet : How to Install FSWatcherEngineEvent is published to the Powershell Gallery. To Install it locally use PowerShellGets command: Watch for Changes and Receive Events To start watching for changes in a directory a file system watcher has to be created and an event handler to process the events. Event source and event receiver are associated by the user defined source identifier. The parameter 'SourceIdentifier' is the unique name of the powershell engine event generated by the file system watcher. The other parameters of the cmdlet correspond to the properties of the .Net FileSystemWatcher class. If you wish to watch subdirectories, you can add -IncludeSubdirectories as a switch. Since Version 1.4 the option -EditOptions presents a small text UI in the terminal where the notification parameters (Filter, notification flags, include/exclude sub dirs) can be set interactively. This option was removed in version 2.0. To receive the event an event handler must be registered for the source identifier. Powershell will write the subscription to the pipe. The above action will dump the whole event to the console. You will receive something like this: Since version 1.2 of the module an event handler ","default_branch":null,"files":null,"tree":[],"storefront":"/r/wgross","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wgross/fswatcher-engine-event/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}