If you want to get only filename and dont want to use weird:
You can use (also weird but ~better looking):
PS: Why there is getFilename ? when it returns ~same stuff as getBasename ? I have to do this ugly stuff^ instead of simple getFilename...