Method BeforeWriteAsync(string, CancellationToken)
Called before writing. Override to connect to remote server, auto-create directory with chmod, etc.
Default implementation auto-creates the target directory if configured.
protected virtual Task BeforeWriteAsync(string targetDir, CancellationToken ct)