parameters: (have_multiple_srcs,
                                    have_existing_dest_subdir, dst_url,
                                    recursion_requested)
docstring: Checks that dst_url names a single file/object after wildcard expansion.
  
    It is possible that an object path might name a bucket sub-directory.
  
    Args:
      have_multiple_srcs: Bool indicator of whether this is a multi-source
          operation.
      have_existing_dest_subdir: bool indicator whether dest is an existing
        subdirectory.
      dst_url: StorageUrl to check.
      recursion_requested: True if a recursive operation has been requested.
  
    Returns:
      bool indicator.
docstring_summary: Checks that dst_url names a single file/object after wildcard expansion.
docstring_tokens: Checks that dst_url names a single file / object after wildcard expansion .
function: def _ShouldTreatDstUrlAsSingleton(have_multiple_srcs,
                                    have_existing_dest_subdir, dst_url,
                                    recursion_requested):
    """Checks that dst_url names a single file/object after wildcard expansion.
  
    It is possible that an object path might name a bucket sub-directory.
  
    Args:
      have_multiple_srcs: Bool indicator of whether this is a multi-source
          operation.
      have_existing_dest_subdir: bool indicator whether dest is an existing
        subdirectory.
      dst_url: StorageUrl to check.
      recursion_requested: True if a recursive operation has been requested.
  
    Returns:
      bool indicator.
    """
    if recursion_requested:
      return False
    if dst_url.IsFileUrl():
      return not dst_url.IsDirectory()
    else:  # dst_url.IsCloudUrl()
      return (not have_multiple_srcs and
              not have_existing_dest_subdir and
              dst_url.IsObject())
function_tokens: def _ShouldTreatDstUrlAsSingleton ( have_multiple_srcs , have_existing_dest_subdir , dst_url , recursion_requested ) : if recursion_requested : return False if dst_url . IsFileUrl ( ) : return not dst_url . IsDirectory ( ) else : # dst_url.IsCloudUrl() return ( not have_multiple_srcs and not have_existing_dest_subdir and dst_url . IsObject ( ) )