code: public String getFilename(String strFilePath, boolean bCreatePath)
      {
          String strFilename = null;
          try
          {
              if (bCreatePath)
              {
                  strFilename = m_strFilePrefix;
                  File file = new File(strFilename);
                  if (!file.isDirectory())
                  {
                      file.mkdir();
                  }
                  int iPos = strFilePath.lastIndexOf(PATH_SEPARATOR);
                  if (iPos != -1) if (iPos < strFilePath.length())
                  {
                      strFilename = strFilename + PATH_SEPARATOR + strFilePath.substring(0, iPos);    // Cut off file name
                      file = new File(strFilename);
                      if (!file.isDirectory())
                      {
                          file.mkdir();
                      }
                  }
              }
              strFilename = m_strFilePrefix + PATH_SEPARATOR + strFilePath + EXTENSION_SEPARATOR + m_strFileExtension;
               
          } catch (Exception ex) {
              ex.printStackTrace();
          }
          return strFilename;
      }
docs: Get the physical table that matches this BaseTable and create it if it doesn't exist.
  This is just a utility for those implementations that use a physical file.
  Open the file and prepare to read objects from it.
  This method also creates the entire directory structure, but does not create
  the file. The file name is: extension/database/filename.extension.
  @param table The table to generate a filename from.
  @param The file extension.
  @param bCreatePath If true, create the file path (not the file name).
  @returns The full file path.