package name.valery1707.jcommander.validators.io;

import name.valery1707.jcommander.validators.ValueChecker;

import java.io.File;

public class ExistsDirectoryExecutable extends ValueChecker<File> {
	@Override
	protected boolean check(File value) {
		return value.exists() && value.isDirectory() && value.canExecute();
	}

	@Override
	protected String error() {
		return "be exists and executable directory";
	}
}