fR 2ddlmZddlmZGddeZy))AbstractFileSystem)tokenizec4eZdZdZdZeZdZdZdZddZ y) 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`. cLdt|jdt|dS)Nz)type__name__id)selfs W/var/lib/jenkins/workspace/mettalog/venv/lib/python3.12/site-packages/fsspec/archive.py__str__z!AbstractArchiveFileSystem.__str__s&&tDz':':&;44zKKcDt||j|jSN)rfoprotocol)r paths r ukeyzAbstractArchiveFileSystem.ukeysdggt}}55rct|dk(r tS|Dchc]}|j|c}|jhz }||j |zScc}w)zReturns *all* directory names for each path in paths, including intermediate ones. Parameters ---------- paths: Iterable of path strings r)lenset_parent root_marker _all_dirnames)r pathsrdirnamess r rz'AbstractArchiveFileSystem._all_dirnamessX u:?5L3894DLL&9T=M=M/r directoryr)namer sizer ) _get_dirs_strip_protocol dir_cacheFileNotFoundError)r rkwargss r infozAbstractArchiveFileSystem.info%s ##D) 9  Q? ? 4>> !>>$' ' CZ4>> )>>$*- -#D) )rc R|ji}|jjD]\}}|jd}d|vr|j ddd}nd}||jdk(r|||<Mt dt |jddg|jdjdzDs|jdjddd}||vs|ddd} | ||<|rt|jd } | St|S) Nr rrc3,K|] \}}||k(ywr).0abs r z/AbstractArchiveFileSystem.ls..<s Aqasr!)r"r#r c |dS)Nr"r-)_s r z.AbstractArchiveFileSystem.ls..Fsqyr)key) r$r&itemsrstriprsplitallzipsplitstripsortedvalues) r rdetailr(rpfrootppathouts r lszAbstractArchiveFileSystem.ls1s NN((*DAq AaxxxQ'*t{{3''a 3" 8J8J38O1OP  ++C3A6%#(![IC#&E%L!+" -@ACJ%= rN)T) r __module__ __qualname____doc__r__repr__rrr)rEr-rr rrs(LH6 7 *!rrN)fsspecr fsspec.utilsrrr-rr rLs%!D! 2D!r