if (isRoot(directory)) {
return false;
}
try {
fileStatus = getFileStatus(directory);
<BUG>if (!SwiftUtils.isDirectory(fileStatus)) {
throw new SwiftNotDirectoryException(directory,</BUG>
String.format(": can't mkdir since it exists and is not a directory: %s",
fileStatus));
} else {

if (isRoot(directory)) {
return false;
}
try {
fileStatus = getFileStatus(directory);
if (!fileStatus.isDir()) {
throw new SwiftNotDirectoryException(directory,
String.format(": can't mkdir since it exists and is not a directory: %s",
fileStatus));
} else {
