azcopy version 10.3.2
Linux
cd my-dir-name
azcopy copy --recursive=true . 'https://storage-account.blob.core.windows.net/container-name/?<SAS>'
The files uploaded onto blob container all have a prefix "my-dir-name", which is the parent directory name on the local disk.
I don't want the directory name to be the prefix of the blobs and it seems there is no extra options to achieve that.
mkdir dir
echo 'content' > file.txt
azcopy copy --recursive=true . 'https://storage-account.blob.core.windows.net/container-name/?<SAS>'
No.
It works the same way as Bash and PowerShell: append /* to the source and it will copy just the _contents _of the source, not the name of the source.
In your case, that would be
AzCopy copy ./* http://... --recursive
@JohnRusk Thank you very much. It worked like a charm.
Most helpful comment
It works the same way as Bash and PowerShell: append /* to the source and it will copy just the _contents _of the source, not the name of the source.
In your case, that would be
AzCopy copy ./* http://... --recursive