Exemplo n.º 1
0
 /**
  * Create an FDirectory with metadata from some FSObject and some content
  * that could be lazily produced by some function.
  *
  * @param   FSObject    $fs_object
  * @param   \Closure    $contents_lazy
  * @return  FDirectory
  */
 public function newFDirectory(FSObject $fs_object, \Closure $contents_lazy)
 {
     $fdir = new FDirectory($fs_object, $contents_lazy);
     if ($this->strict_evaluation) {
         $fdir->fcontents();
     }
     return $fdir;
 }