'Return C{True} if we can use the inotify API on this platform.
@since: 10.1'

def supportsINotify(self):

    try:
        from twisted.python._inotify import INotifyError, init
    except ImportError:
        return False
    if self.isDocker():
        return False
    try:
        os.close(init())
    except INotifyError:
        return False
    return True
