Function fetchUserFiles

Fetches files for the user.