googleapis / nodejs-storage

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.
https://cloud.google.com/storage/
Apache License 2.0
903 stars 370 forks source link

Add an example for uploadManyFiles method #2512

Open xephtar opened 3 months ago

xephtar commented 3 months ago

I am using older version of nodejs-storage. I had an issue about uploading many files into custom path. There is no option to upload custom path with using uploadManyFiles method. But I found an issue that solves this. But there is no example implementation to handle the case.

Can you add an example to upload many files into custom path?

xephtar commented 3 months ago

@ddelgrosso1 I created the issue 🙏

ddelgrosso1 commented 3 months ago

Thanks @xephtar!

individual8 commented 1 month ago

I'd also be interested in an example. I'm kinda already on it, but have difficulties with directory separators (/ vs. \) from Windows file system. I set the the directory in Node with forward slashes, customDestinationBuilder however seem to serve the path with double-backslashes. 🤷