if (!path.isDirectory()) {
//m_errorString = "Provided path exists but is not a directory: " + filePath;
return null;
}
if (!path.canRead()) {
if (!path.setReadable(true)) {
//m_errorString = "Provided path exists but is not readable: " + filePath;
return null;
}
}