Save memory when creating the file list, by shrinking the allocated space for the absPath pointer to the required size