src/Binary/AbstractBinary.php
public function save($directory)
    {
        if ($this->exists($directory)) {
            return true;
        }

        if (! $this->contents) {
            return false;
        }

        $output = $this->getDestination($directory);
        $this->removeOldVersions($directory);
        return file_put_contents($output, $this->contents) !== false;
    }
public function save($directory)
    {
        if ($this->exists($directory)) {
            return true;
        }

        if (! $this->contents) {
            return false;
        }

        $output = $this->getDestination($directory);
        $this->removeOldVersions($directory);
        return file_put_contents($output, $this->contents) !== false;
    }
{@inheritdoc}

@param string $directory
@return bool