Node.js client for Google Cloud Storage: unified object storage for developers and enterprises, from live data serving to data analytics/ML to data archiving.
Thanks for opening this issue @asary-dev. You are correct, it shouldn't be changing the slashes like that. I will take a closer look as to why this is happening in a windows environment.
Environment details
@google-cloud/storage
version: ^6.11.0Steps to reproduce
the code above will upload the files with the prefix and path as it's entire file name:
in turn making the url show up as
https://storage.googleapis.com/example_bucket/user_id_1%5Cfiles%5Cimages%5Cimage001.png
https://storage.googleapis.com/example_bucket/user_id_1%5Cfiles%5Cimages%image002.jpg
expecting it to correctly create directory such as:
https://storage.googleapis.com/example_bucket/user_id_1/files/images/image001.png
https://storage.googleapis.com/example_bucket/user_id_1/files/images/image002.jpg
only happens on windows machine, suspecting
path.join
function on theuploadManyFiles
, is this intended?removing the
prefix
options correctly uploads it into a directory as expected:https://storage.googleapis.com/example_bucket/images/image001.png
https://storage.googleapis.com/example_bucket/images/image002.jpg