I'm a little wary of QFileInfo performance. Perhaps for this use it is cheap.