litesoft
@ 959
litesoft / trunk / Java / ScarPlus / src / com / esotericsoftware / wildcard / support / WildSingleDirMatcher.java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
package com.esotericsoftware.wildcard.support; import com.esotericsoftware.wildcard.*; public class WildSingleDirMatcher implements DirMatcher { private final FilePathPartMatcher mFilePathPartMatcher; public WildSingleDirMatcher( String pDirPath ) { mFilePathPartMatcher = new WildCardPatternFilePathPartMatcher( pDirPath ); } @Override public boolean acceptableParentDir( String dirPath ) { return false; } @Override public boolean acceptable( String dirPath ) { return !dirPath.contains( "/" ) && mFilePathPartMatcher.acceptable( dirPath ); } } |