Here you can find the source of isValidDirectory(File f)
Parameter | Description |
---|---|
f | file to test |
private static boolean isValidDirectory(File f)
//package com.java2s; //License from project: LGPL import java.io.File; public class Main { /**//w ww . j a v a 2s . com * Indicates if the given file is a valid directory. * @param f file to test * @return true if the given file is a valid directory. */ private static boolean isValidDirectory(File f) { return f.exists() && f.isDirectory() && f.canRead(); } }