[powerdebug 3/7] read the gpio directory structure