|
@@ -750,7 +750,7 @@ public class ViewFs extends AbstractFileSystem {
|
|
public void mkdir(final Path dir, final FsPermission permission,
|
|
public void mkdir(final Path dir, final FsPermission permission,
|
|
final boolean createParent) throws AccessControlException,
|
|
final boolean createParent) throws AccessControlException,
|
|
FileAlreadyExistsException {
|
|
FileAlreadyExistsException {
|
|
- if (theInternalDir.isRoot & dir == null) {
|
|
|
|
|
|
+ if (theInternalDir.isRoot && dir == null) {
|
|
throw new FileAlreadyExistsException("/ already exits");
|
|
throw new FileAlreadyExistsException("/ already exits");
|
|
}
|
|
}
|
|
throw readOnlyMountTable("mkdir", dir);
|
|
throw readOnlyMountTable("mkdir", dir);
|