devicelistview.c: Fectch files and folders.

Add functionality to fetch files and folders.