I can not understand documentation of get_filename_component .
NAME_WE = File name without directory or longest extension NAME_WLE = File name without directory or last extension
What does it mean? If and was used here instead of or this would be what I want.
But what or means? It removes randomly one of this variants:
- longest extension
- both: directory, longest extension
How it choose what to remove?