/usr/local/lib/python3.6/site-packages/fsspec/__pycache__
Edit: /usr/local/lib/python3.6/site-packages/fsspec/__pycache__/archive.cpython-36.pyc (2679B)
3
8%Egf ã @ s, d dl mZ d dlmZ G dd„ deƒZdS )é )ÚAbstractFileSystem)Útokenizec @ s> e Zd ZdZdd„ ZeZdd„ Zdd„ Zdd „ Zddd„Z d
S )ÚAbstractArchiveFileSystemz°
A generic superclass for implementing Archive-based filesystems.
Currently, it is shared amongst `ZipFileSystem`, `LibArchiveFileSystem` and
`TarFileSystem`.
c C s dt | ƒjt| ƒf S )Nz
)ÚtypeÚ__name__Úid)Úself© r ú8/usr/local/lib/python3.6/site-packages/fsspec/archive.pyÚ__str__
s z!AbstractArchiveFileSystem.__str__c C s t || j| jƒS )N)r ÚfoÚprotocol)r Úpathr r r
Úukey s zAbstractArchiveFileSystem.ukeyc s: t |ƒdkrtƒ S ‡ fdd„|D ƒˆ jh }|ˆ j|ƒB S )zªReturns *all* directory names for each path in paths, including intermediate ones.
Parameters
----------
paths: Iterable of path strings
r c s h | ]}ˆ j |ƒ’qS r )Ú_parent)Ú.0r )r r r
ú s z:AbstractArchiveFileSystem._all_dirnames..)ÚlenÚsetZroot_markerÚ
_all_dirnames)r ÚpathsÚdirnamesr )r r
r s z'AbstractArchiveFileSystem._all_dirnamesc K sN | j ƒ | j|ƒ}|| jkr&| j| S |d | jkrB| j|d S t|ƒ‚d S )Nú/)Ú _get_dirsZ_strip_protocolÚ dir_cacheÚFileNotFoundError)r r Úkwargsr r r
Úinfo" s
zAbstractArchiveFileSystem.infoFc
K sø | j ƒ i }x¼| jjƒ D ]®\}}|jdƒ}d|krD|jddƒd }nd}||jdƒkr`|||<