
    i                         d dl mZmZ ddlmZ ddlmZ ddlmZ  e       Z		  G d de      Z
e
j                  e
_         G d	 d
e      Zde_        de	_        e
e	_        ee	_        y)    )AnyOptional   )CloudImplementation   )LocalClient)	LocalPathc                       e Zd ZdZeZy)LocalGSClientz{Replacement for GSClient that uses the local file system. Intended as a monkeypatch
    substitute when writing tests.
    N)__name__
__module____qualname____doc__local_gs_implementation_cloud_meta     v/var/www/vps2.regionflexible.com/Desarrollo/venv/lib/python3.12/site-packages/cloudpathlib/local/implementations/gs.pyr   r      s     *Kr   r   c                       e Zd ZU dZdZeed<   eZe	defd       Z
ddee   fdZe	defd	       Ze	defd
       Ze	d        Ze	defd       Zy)LocalGSPathzyReplacement for GSPath that uses the local file system. Intended as a monkeypatch substitute
    when writing tests.
    zgs://cloud_prefixreturnc                     | j                   S N)bucketselfs    r   drivezLocalGSPath.drive   s    {{r   Nmodec                      y r   r   )r   parentsexist_okr   s       r   mkdirzLocalGSPath.mkdir#   s    r   c                 @    | j                   j                  dd      d   S )N/   r   )
_no_prefixsplitr   s    r   r   zLocalGSPath.bucket'   s    $$S!,Q//r   c                 J    | j                   }|j                  d      r|dd  }|S )Nr%   r&   )_no_prefix_no_drive
startswith)r   keys     r   blobzLocalGSPath.blob+   s+    && >>#ab'C
r   c                 8    | j                   j                  |       S r   client_md5r   s    r   etagzLocalGSPath.etag6       {{%%r   c                 8    | j                   j                  |       S r   r/   r   s    r   md5zLocalGSPath.md5:   r3   r   )FFN)r   r   r   r   r   str__annotations__r   r   propertyr   r   r   r#   r   r-   r2   r5   r   r   r   r   r      s      L#)Ks  #  0 0 0 c   & & &S & &r   r   GSPathgsN)typingr   r   	cloudpathr   localclientr   	localpathr	   r   r   	CloudPathr9   r   r   name_client_class_path_classr   r   r   <module>rC      sm      , % ! ./  b*K * %.. %&) %&P   #  (5  %&1  #r   