function watchPath(path, ignored) {
    if (_watcherMap.hasOwnProperty(path)) {
        return;
    }
    return _watcherImpl.watchPath(path, ignored, _watcherMap, _domainManager);
}
Watch a file or directory.
@param {string} path File or directory to watch.
@param {Array<string>} ignored List of entries to ignore during watching.