
    (^i                    D    d dl mZ d dlZd dlZd dlmZ erd dlmZ ddZy)    )annotationsN)TYPE_CHECKING)ArtifactStorec                   t         j                  j                  |      rt        d|       | j	                  |      5 }t        |d      5 }t        j                  ||       ddd       ddd       y# 1 sw Y   xY w# 1 sw Y   yxY w)a  Download an artifact from the artifact store.

    Args:
        artifact_store:
            An artifact store.
        file_path:
            A path to save the downloaded artifact.
        artifact_id:
            The identifier of the artifact to download.
    zFile already exists: wbN)ospathexistsFileExistsErroropen_readeropenshutilcopyfileobj)artifact_store	file_pathartifact_idreaderwriters        [/var/www/html/hubwallet-dev/venv/lib/python3.12/site-packages/optuna/artifacts/_download.pydownload_artifactr      s}     
ww~~i  5i[ABB		#	#K	0 +FDD<Q +U[66*+ + + + + +s#   B A4#B 4A=	9B  B	)r   r   r   strr   r   returnNone)	
__future__r   r   r   typingr   optuna.artifacts._protocolr   r        r   <module>r      s    " 	    8+r   