Here you can find the source of isValidDirectory(File directory)
Parameter | Description |
---|---|
directory | a parameter |
public static boolean isValidDirectory(File directory)
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { /**/*w w w . j av a 2 s . c om*/ * @param directory * @return */ public static boolean isValidDirectory(File directory) { if ((directory == null) || (directory.isHidden()) || (!directory.isDirectory())) { return false; } return true; } }