Made getattr, readdir function