
    h                     .   % S SK r S SKrS SKrS SKJr  S SKrS SKrS SKJr  SSK	J
r
  \
R                  \
R                  \
R                  \
R                  \
R                  /r\\
R$                     \S'   \ Hu  r\R*                  \R,                  ;   a<  \R,                  \R*                     \La   \R.                  " S\R*                   S35        \R0                  " \R*                  \S	S
9  Mw     S\R2                  S\4S jrS\R2                  S\S\4S jrg)    N)List)LocalFileSystem   )compressionCOMPRESSION_FILESYSTEMSz*A filesystem protocol was already set for z and will be overwritten.T)clobberfsreturnc                 ,    [        U [        5      (       + $ )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    W/home/james-whalen/.local/lib/python3.13/site-packages/datasets/filesystems/__init__.pyis_remote_filesystemr      s     "o...    srcdstc                     [        U 5      (       d6  [        R                  " U R                  U5      U R                  U5      5        gU R	                  XSS9  g)z*
Renames the file `src` in `fs` to `dst`.
T)	recursiveN)r   shutilmove_strip_protocolmv)r	   r   r   s      r   renamer   '   sC      ##B&&s+R-?-?-DE
c$'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  K kFFG  (HFOO+@Q@Q0RZb0bB8CTCTBUUnop
""8#4#4hM (/V66 /4 /(v(( (s ( (r   