Duplicated files in a course are only counted once and added usage info of temp and trashdir directories