If the file starts with a dot, the whole filename is considered the basename and there is not extension.