jbackup/src/main/java/org/jbundle/jbackup/filter/PictureFilter.java
public boolean accept(File dir, String filename)
	{
		String strPath = dir.getPath();
//		if ((strPath.indexOf("mediumpics") != -1)
//			|| (strPath.indexOf("smallpics") != -1)
//				|| (strPath.indexOf("thumbpics") != -1))
//			return false;
//		if (strPath.indexOf("\\trips\\") != -1)
		if ((strPath.indexOf("\\html\\pics\\pictures\\") != -1)
			&& (filename.indexOf(".html") != -1)
			&& (strPath.indexOf("\\html\\pics\\pictures\\donandannie\\trips") == -1))
				return false;		// Don't replicate the html files, except the trip
		if ((strPath.indexOf("\\html\\pics\\smallpics\\pictures") != -1)
			&& (filename.indexOf(".html") != -1)
			&& (strPath.indexOf("\\html\\pics\\smallpics\\pictures\\donandannie\\trips") == -1))
				return false;		// Don't replicate the html files, except the trip
		return true;
	}
public boolean accept(File dir, String filename)
	{
		String strPath = dir.getPath();
//		if ((strPath.indexOf("mediumpics") != -1)
//			|| (strPath.indexOf("smallpics") != -1)
//				|| (strPath.indexOf("thumbpics") != -1))
//			return false;
//		if (strPath.indexOf("\\trips\\") != -1)
		if ((strPath.indexOf("\\html\\pics\\pictures\\") != -1)
			&& (filename.indexOf(".html") != -1)
			&& (strPath.indexOf("\\html\\pics\\pictures\\donandannie\\trips") == -1))
				return false;		// Don't replicate the html files, except the trip
		if ((strPath.indexOf("\\html\\pics\\smallpics\\pictures") != -1)
			&& (filename.indexOf(".html") != -1)
			&& (strPath.indexOf("\\html\\pics\\smallpics\\pictures\\donandannie\\trips") == -1))
				return false;		// Don't replicate the html files, except the trip
		return true;
	}
public boolean accept ( File dir , String filename ) { String strPath = dir . getPath ( ) ; //		if ((strPath.indexOf("mediumpics") != -1) //			|| (strPath.indexOf("smallpics") != -1) //				|| (strPath.indexOf("thumbpics") != -1)) //			return false; //		if (strPath.indexOf("\\trips\\") != -1) if ( ( strPath . indexOf ( "\\html\\pics\\pictures\\" ) != - 1 ) && ( filename . indexOf ( ".html" ) != - 1 ) && ( strPath . indexOf ( "\\html\\pics\\pictures\\donandannie\\trips" ) == - 1 ) ) return false ; // Don't replicate the html files, except the trip if ( ( strPath . indexOf ( "\\html\\pics\\smallpics\\pictures" ) != - 1 ) && ( filename . indexOf ( ".html" ) != - 1 ) && ( strPath . indexOf ( "\\html\\pics\\smallpics\\pictures\\donandannie\\trips" ) == - 1 ) ) return false ; // Don't replicate the html files, except the trip return true ; }
Accept this file?
@param dir The directory this file is in.
@param filename The filename.
Accept this file?