package smart_gs.logical.filter;

import java.io.File;

import javax.swing.filechooser.FileFilter;

//Filter for file chooser
public class ImageDirectoryFilter extends FileFilter {
	@Override
	public boolean accept(File dir) {
		String name = dir.getName();
		if (!dir.isDirectory()){
			return false;
		}
		else if(InvisibleName.isInvisible(name)){
			return false;
		}
		return true;
	}

	@Override
	public String getDescription() {
		// TODO Auto-generated method stub
		return "excludes CVS, DSC and .* (casesenseless)";
	}
}