Created function getFileList in PeerNode which will get all the server files for display.