Android Directory Accessible Check isDirectoryAccessible(File directory)

Here you can find the source of isDirectoryAccessible(File directory)

Description

is Directory Accessible

License

Open Source License

Declaration

public static boolean isDirectoryAccessible(File directory) 

Method Source Code

//package com.java2s;
/**//from   www . j av a 2s .com
 * Aptana Studio
 * Copyright (c) 2005-2011 by Appcelerator, Inc. All Rights Reserved.
 * Licensed under the terms of the GNU Public License (GPL) v3 (with exceptions).
 * Please see the license.html included with this distribution for details.
 * Any modifications to this file must keep this entire header intact.
 */

import java.io.File;

public class Main {
    public static boolean isDirectoryAccessible(File directory) {
        if (directory == null || !directory.isDirectory()) {
            return false;
        }
        return directory.list() != null;
    }
}