    

 ## On this page

  

 

 # getBaseName

 Last update: 30.07.2026 

public [getBaseName](get-base-name.md)(): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)

Get the base filename, regardless of whether this is a version, file, or otherwise. This is the name of the file as it would appear on a local disk. For example, if this is readme.txt, version 2, this function will return "readme.txt".

#### Throws

[ModelCenterException](./../-model-center-exception/index.md)on error