jodd-core/src/main/java/jodd/io/watch/DirWatcher.java
protected boolean acceptFile(final File file) {
		if (!file.isFile()) {
			return false;			// ignore non-files
		}

		String fileName = file.getName();

		if (ignoreDotFiles) {
			if (fileName.startsWith(StringPool.DOT)) {
				return false;        // ignore hidden files
			}
		}

		if (patterns == null) {
			return true;
		}

		return Wildcard.matchOne(fileName, patterns) != -1;
	}
protected boolean acceptFile(final File file) {
		if (!file.isFile()) {
			return false;			// ignore non-files
		}

		String fileName = file.getName();

		if (ignoreDotFiles) {
			if (fileName.startsWith(StringPool.DOT)) {
				return false;        // ignore hidden files
			}
		}

		if (patterns == null) {
			return true;
		}

		return Wildcard.matchOne(fileName, patterns) != -1;
	}
protected boolean acceptFile ( final File file ) { if ( ! file . isFile ( ) ) { return false ; // ignore non-files } String fileName = file . getName ( ) ; if ( ignoreDotFiles ) { if ( fileName . startsWith ( StringPool . DOT ) ) { return false ; // ignore hidden files } } if ( patterns == null ) { return true ; } return Wildcard . matchOne ( fileName , patterns ) != - 1 ; }
Accepts if a file is going to be watched.
Accepts if a file is going to be watched .