Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/stream/s3ConcurrentListObjectStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ S3ConcurrentListObjectStream.prototype.sendToQueue = function (options) {
* requests for object listing. Defaults to '/'.
* @param {String} [options.prefix] If set only return keys beginning with
* the prefix value.
* @param {String} [options.owner] enable v2 FetchOwner flag
* @param {String} [options.continuationToken] If set the list only a paged set
* of keys, with the token showing the start point.
* @param {Number} [options.maxKeys] Maximum number of keys to return per
Expand All @@ -136,6 +137,7 @@ S3ConcurrentListObjectStream.prototype.listDirectoryPage = function (
Delimiter: options.delimiter,
ContinuationToken: options.continuationToken,
MaxKeys: options.maxKeys,
FetchOwner: options.owner,
Prefix: options.prefix
};

Expand Down Expand Up @@ -261,6 +263,7 @@ S3ConcurrentListObjectStream.prototype.listDirectoryAndRecuse = function (
* requests for object listing. Defaults to '/'.
* @param {Number} [options.maxKeys] Maximum number of keys to return per
* request. Defaults to 1000.
* @param {String} [options.owner] If present, show owner struct of object
* @param {String} [options.prefix] If present, only list objects with keys that
* match the prefix.
* @param {String} encoding Irrelevant since this is an object stream.
Expand All @@ -281,7 +284,8 @@ S3ConcurrentListObjectStream.prototype.processIncomingObject = function (
}

options.delimiter = options.delimiter || '/';

// default to fetching the owner
options.owner = options.owner || true;
// Reset the global state for the next item.
//
// Since incoming items are processed in order, the next not starting until
Expand Down