
    Pi                        U d dl Z d dlZd dlZd dlmZ d dlZd dlZd dlmZ ddl	m
Z
 e
j        e
j        e
j        e
j        e
j        gZee
j                 ed<   eD ]UZej        ej        v r-ej        ej                 eur ej        dej         d            ej        ej        ed	
           Vdej        defdZdej        dedefdZdS )    N)List)LocalFileSystem   )compressionCOMPRESSION_FILESYSTEMSz*A filesystem protocol was already set for z and will be overwritten.T)clobberfsreturnc                 .    t          | t                     S )z
    Checks if `fs` is a remote filesystem.

    Args:
        fs (`fsspec.spec.AbstractFileSystem`):
            An abstract super-class for pythonic file-systems, e.g. `fsspec.filesystem('file')` or `s3fs.S3FileSystem`.
    )
isinstancer   )r	   s    q/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/datasets/filesystems/__init__.pyis_remote_filesystemr      s     "o....    srcdstc                     t          |           s=t          j        |                     |          |                     |                     dS |                     ||d           dS )z2
    Renames the file `src` in `fs` to `dst`.
    T)	recursiveN)r   shutilmove_strip_protocolmv)r	   r   r   s      r   renamer   '   sf      ## (B&&s++R-?-?-D-DEEEEE
c3$'''''r   )	importlibr   warningstypingr   fsspecfsspec.asynfsspec.implementations.localr    r   Bz2FileSystemGzipFileSystemLz4FileSystemXzFileSystemZstdFileSystemr   listBaseCompressedFileFileSystem__annotations__fs_classprotocolregistrywarnregister_implementationAbstractFileSystemboolr   strr    r   r   <module>r1      s                     8 8 8 8 8 8       K kFG    ( N NHFO++@Q0RZb0b0bo8CToooppp"F"8#4hMMMMM/V6 /4 / / / /(v( (s ( ( ( ( ( ( (r   