use a FileInfo object of the directory when generting the filelist
Merge pull request #7257 from owncloud/filelist-fileinfo

use a FileInfo object of the directory when generting the filelist