/
opt
/
gsutil
/
gslib
/
utils
/
__pycache__
/
up file
home
a +(Wg�J � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlZddl Z ddl Z ddlZddlZddl Z ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ es�ddlZddlZe jr�eZdZdZdZ dZ!dZ"dZ#dZ$dZ%e�&d�Z'dZ(dZ)dZ*dZ+dZ,dZ-dZ.dZ/dZ0da1e2� a3G dd� de4�Z5G d d!� d!e4�Z6d"d#� Z7d$d%� Z8dAd'd(�Z9d)d*� Z:d+d,� Z;d-d.� Z<e$e$e%fd/d0�Z=dBd1d2�Z>d3d4� Z?d5d6� Z@d7d8� ZAd9d:� ZBd;d<� ZCd=d>� ZDd?d@� ZEdS )CzHelper file for POSIX methods.� )�absolute_import)�print_function)�division)�unicode_literals)�timegmN)�CommandException)�UTC)�CreateCustomMetadata)� GetValueFromObjectCustomMetadata)� IS_WINDOWS)�SECONDS_PER_DAYzgoog-reserved-file-atimezgoog-reserved-posix-gidzgoog-reserved-posix-modezgoog-reserved-file-mtimezgoog-reserved-posix-uid���z ^[0-7]{3}$� � �@ � � � � � � c @ s$ e Zd ZdZeeeedfdd�ZdS )�POSIXAttributesz1Class to hold POSIX attributes for a file/object.Nc C s. || _ || _|| _|| _t|r"|nt�| _dS )a6 Constructor for POSIXAttributes class which holds relevant data. Args: atime: The access time of the file/object. mtime: The modification time of the file/object. uid: The user ID that owns the file. gid: The group ID that the user is in. mode: An instance of POSIXMode. N)�atime�mtime�uid�gid� POSIXMode�NA_MODE�mode)�selfr r r r r � r �%/opt/gsutil/gslib/utils/posix_util.py�__init__V s zPOSIXAttributes.__init__)�__name__� __module__�__qualname__�__doc__�NA_TIME�NA_IDr"