files and dirs printed in same way