What is the problem you are having with rclone?
I am trying to clone a specific file from an openstack swift backend to a pipe for example io.WriteCloser in golang.
I tried it with the
func Cat(ctx context.Context, f fs.Fs, w io.Writer, offset, count int64, sep []byte)
But no success, because its not possible to pass in a single file.
output:
could not create source remote 'XXX':is a file not a directory
Run the command 'rclone version' and share the full output of the command.
Imported rclone version from the go.mod file:
github.com/rclone/rclone v1.66.0
Which cloud storage system are you using? (eg Google Drive)
Swift
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
operations.Cat(ctx, fsource, pipe, 0, -1, []byte{})
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[XXX]
type = swift
env_auth = true
user = XXX
key = XXX
auth = https://XXX:443/v3
domain = XXX
tenant = XXX
tenant_domain = XXX
auth_version = 3
endpoint_type = internal