private static String getDir(String paramString) {
        if (paramString == null) {
            return null;
        }
        File localFile = new File(paramString);
        if ((localFile.isDirectory()) && (localFile.canRead())) {
            return localFile.getAbsolutePath();
        }
        return null;
    }