OXIESEC PANEL
- Current Dir:
/
/
opt
/
gsutil
/
gslib
/
commands
/
__pycache__
Server IP: 2a02:4780:11:1594:0:ef5:22d7:a
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/11/2025 08:19:49 AM
rwxr-xr-x
📄
__init__.cpython-39.pyc
323 bytes
02/11/2025 08:19:49 AM
rw-r--r--
📄
acl.cpython-39.pyc
18.76 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
autoclass.cpython-39.pyc
6.01 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
bucketpolicyonly.cpython-39.pyc
6.75 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
cat.cpython-39.pyc
4.17 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
compose.cpython-39.pyc
4.57 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
config.cpython-39.pyc
40.97 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
cors.cpython-39.pyc
6.56 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
cp.cpython-39.pyc
42.21 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
defacl.cpython-39.pyc
11.25 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
defstorageclass.cpython-39.pyc
5.78 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
du.cpython-39.pyc
8.47 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
hash.cpython-39.pyc
7.87 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
help.cpython-39.pyc
6.41 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
hmac.cpython-39.pyc
12.39 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
iam.cpython-39.pyc
24.6 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
kms.cpython-39.pyc
14.88 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
label.cpython-39.pyc
10.46 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
lifecycle.cpython-39.pyc
6.37 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
logging.cpython-39.pyc
9.04 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
ls.cpython-39.pyc
18.81 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
mb.cpython-39.pyc
12.23 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
mv.cpython-39.pyc
5.06 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
notification.cpython-39.pyc
25.47 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
pap.cpython-39.pyc
6.53 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
perfdiag.cpython-39.pyc
62.18 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
rb.cpython-39.pyc
3.78 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
requesterpays.cpython-39.pyc
5.53 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
retention.cpython-39.pyc
20.02 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
rewrite.cpython-39.pyc
16.12 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
rm.cpython-39.pyc
10.86 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
rpo.cpython-39.pyc
5.96 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
rsync.cpython-39.pyc
53.86 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
setmeta.cpython-39.pyc
11.25 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
signurl.cpython-39.pyc
20.99 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
stat.cpython-39.pyc
5.04 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
test.cpython-39.pyc
17.73 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
ubla.cpython-39.pyc
6.96 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
update.cpython-39.pyc
12.26 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
version.cpython-39.pyc
5.25 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
versioning.cpython-39.pyc
5.51 KB
02/11/2025 08:19:49 AM
rw-r--r--
📄
web.cpython-39.pyc
7.63 KB
02/11/2025 08:19:49 AM
rw-r--r--
Editing: version.cpython-39.pyc
Close
a +(Wgy � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlZddlZddlZddl Z ddl Z ddlZddlZddl Z ddlmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ dZde d ZG dd� de�Zdd� ZdS )�)Implementation of gsutil version command.� )�absolute_import)�print_function)�division)�unicode_literalsN)�Command)�system_util)�GetFriendlyConfigFilePaths)�UsingCrcmodExtension)�UTF8)�GetMd5)�$CheckMultiprocessingAvailableAndInitz gsutil version z <B>SYNOPSIS</B> aS <B>DESCRIPTION</B> Prints information about the version of gsutil. <B>OPTIONS</B> -l Prints additional information, such as the version of Python being used, the version of the Boto library, a checksum of the code, the path to gsutil, and the path to gsutil's configuration file. c @ sV e Zd ZdZejddgeddddddd� Zejddgdd e i d �Z dd� Zd d� ZdS )�VersionCommandr �version�verr �lF)�command_name_aliases�usage_synopsis�min_args�max_args�supported_sub_args�file_url_ok�provider_url_ok�urls_start_arg�command_helpzPrint version info about gsutil)� help_name�help_name_aliases� help_type�help_one_line_summary� help_text�subcommand_help_textc C s d}| j r&| j D ]\}}|dkrd}qd�t� �}tj}z| �� }W n tyZ d}Y n0 ||krjd}nd| }tj� dtj � |r�d }tj� |j||tj tj�d d�dt�� t�� f t� jt�� t�� |t� p�tjt� tjtjtj�d dd�d�� dS )z,Command entry point for the version command.Fz-lTz, z MISSING FILES�OKz!= %szgsutil version: %s a� checksum: {checksum} ({checksum_ok}) boto version: {boto_version} python version: {python_version} OS: {os_version} multiprocessing available: {multiprocessing_available} using cloud sdk: {cloud_sdk} pass cloud sdk credentials to gsutil: {cloud_sdk_credentials} config path(s): {config_paths} gsutil path: {gsutil_path} compiled crcmod: {compiled_crcmod} installed via package manager: {is_package_install} editable install: {is_editable_install} shim enabled: {is_shim_enabled} � � z%s %s�GSUtil�use_gcloud_storage)�checksumZchecksum_ok�boto_version�python_version� os_versionZmultiprocessing_availableZ cloud_sdkZcloud_sdk_credentials�config_paths�gsutil_pathZcompiled_crcmodZis_package_installZis_editable_installZis_shim_enabledr )�sub_opts�joinr �gslib�CHECKSUM�_ComputeCodeChecksum�IOError�sys�stdout�write�VERSION�format�boto�__version__r �replace�platform�system�releaser �is_availabler �InvokedViaCloudSdk�CloudSdkCredPassingEnabled�"GetCloudSdkGsutilWrapperScriptPath�GSUTIL_PATHr �IS_PACKAGE_INSTALL�IS_EDITABLE_INSTALL�config�getbool) �selfZ long_form�o�_r* Zshipped_checksumZcur_checksumZchecksum_ok_strZlong_form_output� rI �%/opt/gsutil/gslib/commands/version.py� RunCommandT sP ����zVersionCommand.RunCommandc C s� t jr dS t� }t jg}t�t j�D ]2\}}}|D ]"}|�d�r2|�tj � ||�� q2q$t|�D ]z}tj r�t|d�}|�� }t�dd|�}|�|� |�� q`t|dtd�}|�� }t�dd|�}|�|�t�� |�� q`|�� S ) af Computes a checksum of gsutil code. This checksum can be used to determine if users locally modified gsutil when requesting support. (It's fine for users to make local mods, but when users ask for support we ask them to run a stock version of gsutil so we can reduce possible variables.) Returns: MD5 checksum of gsutil code. Z.PACKAGED_GSUTIL_INSTALLS_DO_NOT_HAVE_CHECKSUMSz.py�rbz(\r\n|\r|\n)� �r)�encodingr"