public function newFile($name, $contents) { $file = new File($this->t, $name); $path = new Folder($file->getPath()); $path->exists() || $path->create(); $file->out()->write($contents); }