def listbucket(path_prefix, marker=None, prefix=None, max_keys=None, delimiter=None, retry_params=None, _account_id=None):
 if prefix:
  common.validate_bucket_path(path_prefix)
  bucket = path_prefix
 else:
  (bucket, prefix) = common._process_path_prefix(path_prefix)
 if (marker and marker.startswith(bucket)):
  marker = marker[(len(bucket) + 1):]
 api = storage_api._get_storage_api(retry_params=retry_params, account_id=_account_id)
 options = {}
 if marker:
  options['marker'] = marker
 if max_keys:
  options['max-keys'] = max_keys
 if prefix:
  options['prefix'] = prefix
 if delimiter:
  options['delimiter'] = delimiter
 return _Bucket(api, bucket, options)

def listbucket ( path_prefix , marker = None , prefix = None , max_keys = None , delimiter = None , retry_params = None , _account_id = None ) : if prefix : common . validate_bucket_path ( path_prefix ) bucket = path_prefix else : ( bucket , prefix ) = common . _process_path_prefix ( path_prefix ) if ( marker and marker . startswith ( bucket ) ) : marker = marker [ ( len ( bucket ) + 1 ) : ] api = storage_api . _get_storage_api ( retry_params = retry_params , account_id = _account_id ) options = { } if marker : options [ 'marker' ] = marker if max_keys : options [ 'max-keys' ] = max_keys if prefix : options [ 'prefix' ] = prefix if delimiter : options [ 'delimiter' ] = delimiter return _Bucket ( api , bucket , options )
returns a gcsfilestat iterator over a bucket .