Implemented the posix::directory#for_each() method.