code: boolean isDir(String src) {
      byte[][] components = INodeDirectory.getPathComponents(normalizePath(src));
      readLock();
      try {
        INode node = rootDir.getNode(components);
        return isDir(node);
      } finally {
        readUnlock();
      }
    }
docs: Check whether the path specifies a directory