code: public boolean open( String fileName, String locationPath, String mapsetName ) {
  
          if (dataWindow != null) {
              name = fileName;
              this.locationPath = locationPath;
              this.mapsetPath = locationPath + File.separator + mapsetName;
              fcellFilePath = mapsetPath + File.separator + GrassLegacyConstans.FCELL + File.separator + name;
  
              if (!checkStructure())
                  return false;
              if (!createEmptyHeader(fcellFilePath, dataWindow.getRows()))
                  return false;
          } else {
              return false;
          }
  
          return true;
      }
docs: /*
  (non-Javadoc)
  
  @see jgrass.io.MapWriter#open(java.lang.String) this method tests for the existence of the
  needed folder structure and creates missing parts. The dataOutputType for the map to be
  created is checked