Add a function that returns a QMap of the files, using the dirs as keys