Merge pull request #2338 from JosJuice/getfilelist-return Filesystem: Return file list reference instead of modifying argument