/**
  * constructor
  *
  * @param  vfsStreamContent[]  $children
  */
 public function __construct(array $children)
 {
     $this->children = $children;
     if (vfsStream::useDotfiles()) {
         array_unshift($this->children, new DotDirectory('.'), new DotDirectory('..'));
     }
     reset($this->children);
 }