public function destination($directory)
    {
        $filesystem = new Filesystem();

        foreach ($this->current_state as $filename => $file_content) {
            $filesystem->dumpFile($directory . '/' . $filename, $file_content);
        }

        unset($this->current_state);

        return $this;
    }