Using NodeJs v12, We have multiple files creating dynamically for every minute, these files should be uploaded to cloud storage as zip, and this zip files should be updated with new files which are created on my system.
I have referred some docs, it says there is no directory concept in GCS, then how can we archive it?, We have observed that gzip added for files/object.
using @google-cloud/storage latest.
Current code:
storage.bucket(bucketName).upload(destinationStorage, {
gzip: true,
destination: userId+"/"+filename,
metadata: {
cacheControl: 'no-cache'
},
}).then( async(result) =>{
console.log("Uploaded");
})