
    i                     N    d dl mZmZmZ ddlmZmZ erddlmZ  G d de      Z	y)	    )AnyOptionalTYPE_CHECKING   )	CloudPathNoStatError   )LocalClientc                   X    e Zd ZU dZded<   ddefdZddefdZddZdd	ed
e	e
   fdZy)	LocalPathzAbstract CloudPath for accessing objects the local filesystem. Subclasses are as a
    monkeypatch substitutes for normal CloudPath subclasses when writing tests.r
   clientreturnc                 <    | j                   j                  | |      S N)follow_symlinks)r   _is_dirselfr   s     m/var/www/vps2.regionflexible.com/Desarrollo/venv/lib/python3.12/site-packages/cloudpathlib/local/localpath.pyis_dirzLocalPath.is_dir   s    {{""4"II    c                 <    | j                   j                  | |      S r   )r   _is_filer   s     r   is_filezLocalPath.is_file   s    {{##D/#JJr   c                 v    	 | j                   j                  |       }|S # t        $ r t        d|  d      w xY w)NzNo stats available for z%; it may be a directory or not exist.)r   _statFileNotFoundErrorr   )r   r   metas      r   statzLocalPath.stat   sM    	;;$$T*D
 	 ! 	)$/TU 	s    8Nexist_okmodec                 <    | j                   j                  | |       y )N)r   _touch)r   r    r!   s      r   touchzLocalPath.touch   s    4*r   )T)TN)__name__
__module____qualname____doc____annotations__boolr   r   r   r   r   r$    r   r   r   r   
   sH    S Jd JKt K+d +# +r   r   N)
typingr   r   r   	cloudpathr   r   localclientr
   r   r+   r   r   <module>r/      s"    / / . (+	 +r   