if (readDir != null)
{
readDirectory = FileUtils.openDirectory(readDir);
if (!(readDirectory.canRead()))
{
throw new ConnectException(FileMessages.fileDoesNotExist(readDirectory.getAbsolutePath()), this);
}
else
{
logger.debug("Listening on endpointUri: " + readDirectory.getAbsolutePath());
}
}
if (moveDir != null)
{
moveDirectory = FileUtils.openDirectory((moveDir));
if (!(moveDirectory.canRead()) || !moveDirectory.canWrite())
{
throw new ConnectException(FileMessages.moveToDirectoryNotWritable(), this);
}
}
}