Return File object instead of String from list-dir.
Test that list-dir returns all File objects.