code: public ISO9660Directory addPath(String path) throws HandlerException {
          ISO9660Directory dir;
          if (path.indexOf(File.separator) == -1) {
              // Path is a directory - add it if not already listed
              return checkDirectory(path);
          }
  
          // Add path recursively
          int frontSeparatorIndex = path.indexOf(File.separator);
          String dirName = path.substring(0, frontSeparatorIndex);
          dir = checkDirectory(dirName);
          String rest = path.substring(frontSeparatorIndex + 1);
          dir = dir.addPath(rest);
  
          return dir;
      }
docs: Add path
  
  @param path Filesystem-specific path to be added recursively
  
  @return Topmost added directory
  @throws com.github.stephenc.javaisotools.sabre.HandlerException