/** * @param DirectoryInterface $node * @return ObjectStream */ protected function copyToDirectory(DirectoryInterface $node) { return $this->copyToFile($node->getFilesystem()->file($node->getPath() . $this->getName())); }