Skip to content

Commit

Permalink
feat: add --list-allow-unorderd command-line switch
Browse files Browse the repository at this point in the history
  • Loading branch information
Salar Nosrati-Ershad committed Aug 22, 2022
1 parent d5fc25c commit b0fd9ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .ci.s3cfg
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ kms_key =
limit = -1
limitrate = 0
list_md5 = False
list_allow_unordered = False
log_target_prefix =
long_listing = False
max_delete = -1
Expand Down
2 changes: 1 addition & 1 deletion S3/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class Config(object):
# Not an AWS standard
# allow the listing results to be returned in unsorted order.
# This may be faster when listing very large buckets.
list_objects_allow_unordered = False
list_allow_unordered = False

## Creating a singleton
def __new__(self, configfile = None, access_key=None, secret_key=None, access_token=None):
Expand Down
3 changes: 3 additions & 0 deletions s3cmd
Original file line number Diff line number Diff line change
Expand Up @@ -2841,6 +2841,9 @@ def main():
optparser.add_option( "--multipart-chunk-size-mb", dest="multipart_chunk_size_mb", type="int", action="store", metavar="SIZE", help="Size of each chunk of a multipart upload. Files bigger than SIZE are automatically uploaded as multithreaded-multipart, smaller files are uploaded using the traditional method. SIZE is in Mega-Bytes, default chunk size is 15MB, minimum allowed chunk size is 5MB, maximum is 5GB.")

optparser.add_option( "--list-md5", dest="list_md5", action="store_true", help="Include MD5 sums in bucket listings (only for 'ls' command).")

optparser.add_option( "--list-allow-unordered", dest="list_allow_unordered", action="store_true", help="Not an AWS standard. Allow the listing results to be returned in unsorted order. This may be faster when listing very large buckets.")

optparser.add_option("-H", "--human-readable-sizes", dest="human_readable_sizes", action="store_true", help="Print sizes in human readable form (eg 1kB instead of 1234).")

optparser.add_option( "--ws-index", dest="website_index", action="store", help="Name of index-document (only for [ws-create] command)")
Expand Down

0 comments on commit b0fd9ec

Please sign in to comment.