| 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 : |
�
�� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ej
G d� d ej � � � � Zd
S )zCImplementation of Unix-like cp command for cloud storage providers.� )�absolute_import)�division)�unicode_literals)�base)�cp_command_util)�flagsc �8 � e Zd ZdZddd�Zed� � � Zd� ZdS )�Cpz1Upload, download, and copy Cloud Storage objects.z�
Copy data between your local file system and the cloud, within the cloud,
and between cloud storage providers.
a�
The following command uploads all text files from the local directory to a
bucket:
$ {command} *.txt gs://my-bucket
The following command downloads all text files from a bucket to your
current directory:
$ {command} gs://my-bucket/*.txt .
The following command transfers all text files from a bucket to a
different cloud storage provider:
$ {command} gs://my-bucket/*.txt s3://my-bucket
Use the `--recursive` option to copy an entire directory tree. The
following command uploads the directory tree ``dir'':
$ {command} --recursive dir gs://my-bucket
Recursive listings are similar to adding `**` to a query, except
`**` matches only cloud objects and will not match prefixes. For
example, the following would not match ``gs://my-bucket/dir/log.txt''
$ {command} gs://my-bucket/**/dir dir
`**` retrieves a flat list of objects in a single API call. However, `**`
matches folders for non-cloud queries. For example, a folder ``dir''
would be copied in the following.
$ {command} ~/Downloads/**/dir gs://my-bucket
)�DESCRIPTION�EXAMPLESc �~ � t j |� � t j |� � t j |� � d S �N)r �add_cp_and_mv_flags�add_recursion_flagr �add_per_object_retention_flags)�cls�parsers �lib/surface/storage/cp.py�ArgszCp.ArgsI s; � ��'��/�/�/��&�v�.�.�.� �(��0�0�0�0�0� c �` � t j |� � t j |� � | _ d S r )r �RequireProjectIDr �run_cp� exit_code)�self�argss r �RunzCp.RunO s) � ���$����$�+�D�1�1�D�N�N�Nr N)�__name__�
__module__�__qualname__�__doc__�
detailed_help�classmethodr r � r r r
r
s[ � � � � � �9�9�
�
!
�)� )�-�V �1� 1� �;�1�
2� 2� 2� 2� 2r r
N)
r! �
__future__r r r �googlecloudsdk.callioper �"googlecloudsdk.command_lib.storager r �UniverseCompatible�Commandr
r$ r r �<module>r* s� �� J� I� &� &� &� &� &� &� � � � � � � '� '� '� '� '� '� (� (� (� (� (� (� >� >� >� >� >� >� 4� 4� 4� 4� 4� 4� ��72� 72� 72� 72� 72��� 72� 72� ��72� 72� 72r