Introduce FileInfo objects for the result of dir and add readable and hidden attributes to files