src/File.php
public function write(string $content, bool $append = false, int $mode = LOCK_EX): self
    {
        $this->checkFileWritePermissions();

        if (!$this->storage->writeFile($content, $append, $mode)) {
            throw new AccessDeniedException('unable to write file-content', 403);
        }

        return $this;
    }
public function write(string $content, bool $append = false, int $mode = LOCK_EX): self
    {
        $this->checkFileWritePermissions();

        if (!$this->storage->writeFile($content, $append, $mode)) {
            throw new AccessDeniedException('unable to write file-content', 403);
        }

        return $this;
    }
write content to storage
@param  string $content
@param bool $append
@param int $mode LOCK_EX
@return self
@throws AccessDeniedException