�
;��gR � �: � d dl mZ d dlmZ G d� de� � ZdS )� )�AbstractFileSystem)�tokenizec �6 � e Zd ZdZd� ZeZd� Zd� Zd� Zd d�Z dS )
�AbstractArchiveFileSystema(
A generic superclass for implementing Archive-based filesystems.
Currently, it is shared amongst
:class:`~fsspec.implementations.zip.ZipFileSystem`,
:class:`~fsspec.implementations.libarchive.LibArchiveFileSystem` and
:class:`~fsspec.implementations.tar.TarFileSystem`.
c �R � dt | � � j � dt | � � � d�S )Nz<Archive-like object z at �>)�type�__name__�id)�selfs �^/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/fsspec/archive.py�__str__z!AbstractArchiveFileSystem.__str__ s* � �K�t�D�z�z�':�K�K��4���K�K�K�K� c �8 � t || j | j � � S �N)r �fo�protocol)r �paths r
�ukeyzAbstractArchiveFileSystem.ukey s � ���d�g�t�}�5�5�5r c � � � t |� � dk rt � � S � fd�|D � � � j hz
}|� � |� � z S )z�Returns *all* directory names for each path in paths, including intermediate
ones.
Parameters
----------
paths: Iterable of path strings
r c �: �� h | ]}�� |� � ��S � )�_parent)�.0r r s �r
� <setcomp>z:AbstractArchiveFileSystem._all_dirnames.<locals>.<setcomp>"