GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Storage streams use 'complete' event for end of stream but built-in streams use 'finish' · Issue #362 · googleapis/google-cloud-node Closed Labels api: storageIssues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue. Milestone DescriptionAs was raised in #340, I looked into why there was a discrepancy between what the developer thought and what was the real case. There was a suggestion made to update our docs, but our docs aren't the issue here. A snippet from the tests shows the issue: Using file.createReadStream() .pipe(fs.createWriteStream(tmpFilePath)) .on('error', done) .on('finish', function() { file.delete(function(err) { assert.ifError(err); fs.readFile(tmpFilePath, function(err, data) { assert.equal(data, fileContent); done(); }); }); }); Using var file = bucket.file(filenames[0]); fs.createReadStream(files.logo.path) .pipe(file.createWriteStream()) .on('error', done) .on('complete', function() { file.copy(filenames[1], function(err, copiedFile) { assert.ifError(err); copiedFile.copy(filenames[2], done); }); }); Seems the only difference is the type of file that is getting piped to. In the first case, it's a regular stream from So my question is, should we use a consistent Activity
MetadataMetadataAssigneesLabelsapi: storageIssues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |