Is there a list of folders java FileName determine a file

//判断某个文件列表中是否有FileName文件夹
	private static boolean DetermineIfThereIsSomeFile(File[] children, String FileName) {
		for (File file : children) {
			if(file.getName().equals(FileName)) {
				return true;
			};
		}
		return false;
	}

 

 
Published 217 original articles · won praise 7 · views 50000 +

Guess you like

Origin blog.csdn.net/Hodors/article/details/103121105