A port of the inotify-wait tool for Windows
C# Makefile
Switch branches/tags
Nothing to show
Clone or download
thekid Merge pull request #27 from Aldecar/patch-1
Missing semicolon Processor function
Latest commit ff95011 Jul 4, 2017
Permalink
Failed to load latest commit information.
src Missing semicolon Processor function Jul 3, 2017
LICENSE.md Welcome 2017 Jun 15, 2017
Makefile disable path mangling on MSYS2 Sep 12, 2016
README.md Reformat to fit width May 4, 2015

README.md

inotify-win

A port of the inotifywait tool for Windows, see https://github.com/rvoicilas/inotify-tools

Compiling

If you have Cygwin installed, just run make in this directory. This will create the executable, inotifywait.exe.

Manual complilation goes as follows:

$ %WINDIR%\Microsoft.NET\Framework\v4.0.30319\csc.exe /t:exe /out:inotifywait.exe src\*.cs
Microsoft (R) Visual C# 2010 Compiler Version 4.0.30319.1
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

$ 

Usage

The command line arguments are similar to the original one's:

$ inotifywait.exe
Usage: inotifywait [options] path [...]

Options:
-r/--recursive:  Recursively watch all files and subdirectories inside path
-m/--monitor:    Keep running until killed (e.g. via Ctrl+C)
-q/--quiet:      Do not output information about actions
-e/--event list: Events (create, modify, delete, move) to watch, comma-separated. Default: all
--format format: Format string for output.
--exclude:       Do not process any events whose filename matches the specified regex
--excludei:      Ditto, case-insensitive

Formats:
%e             : Event name
%f             : File name
%w             : Path name
%T             : Current date and time

Known issues

When moving files, not all events are reported consistently with the original. See issue #7 for an explanation. Pull requests welcome!