Refactored RepoFile with FileType into inheritance hierarchy with
NormalFile, Directory and Symlink.