I've noticed zipping a GCP directory fails if the directory contains multiple files smaller than 10MB. When I manually set the
resumable option to false in the uploadOptions constant, zipping works.
An example below:
const uploadOptions = {resumable: false, destination: toPath, validation: 'md5', metadata: {contentType: 'application/zip'}};
SOURCES
https://googleapis.dev/nodejs/storage/latest/File.html#createWriteStream
https://googleapis.dev/nodejs/storage/latest/global.html#CreateWriteStreamOptions
I've noticed zipping a GCP directory fails if the directory contains multiple files smaller than 10MB. When I manually set the
resumable option to false in the uploadOptions constant, zipping works.
An example below:
const uploadOptions = {resumable: false, destination: toPath, validation: 'md5', metadata: {contentType: 'application/zip'}};SOURCES
https://googleapis.dev/nodejs/storage/latest/File.html#createWriteStream
https://googleapis.dev/nodejs/storage/latest/global.html#CreateWriteStreamOptions