/usr/local/lib/python3.6/site-packages/fsspec/implementations/__pycache__
NameSizeModeActions
arrow.cpython-36.pyc73280644editdlrm
cached.cpython-36.pyc230300644editdlrm
dask.cpython-36.pyc46560644editdlrm
dbfs.cpython-36.pyc133510644editdlrm
dvc.cpython-36.pyc26220644editdlrm
ftp.cpython-36.pyc104440644editdlrm
git.cpython-36.pyc37500644editdlrm
github.cpython-36.pyc74040644editdlrm
hdfs.cpython-36.pyc70930644editdlrm
http.cpython-36.pyc207520644editdlrm
jupyter.cpython-36.pyc41310644editdlrm
libarchive.cpython-36.pyc60050644editdlrm
local.cpython-36.pyc119120644editdlrm
memory.cpython-36.pyc66970644editdlrm
reference.cpython-36.pyc161420644editdlrm
sftp.cpython-36.pyc61040644editdlrm
smb.cpython-36.pyc105910644editdlrm
tar.cpython-36.pyc45020644editdlrm
webhdfs.cpython-36.pyc147120644editdlrm
zip.cpython-36.pyc32760644editdlrm
__init__.cpython-36.pyc1560644editdlrm
Edit: /usr/local/lib/python3.6/site-packages/fsspec/implementations/__pycache__/libarchive.cpython-36.pyc (6005B)
3 8%Eg@sddlmZmZmZddlmZddlmZmZm Z m Z m Z m Z m Z ddlZddljZddlmZddlmZddlmZddlmZee e e e e Zejd ejege ejZeed Zed d ejfd d Z GdddeZ!dS))absolute_importdivisionprint_function)contextmanager) CFUNCTYPEPOINTERc_int c_longlongc_void_pcastcreate_string_bufferN) open_files)AbstractArchiveFileSystem) MemoryFile)DEFAULT_BLOCK_SIZEread_set_seek_callback NO_OPEN_CBallc #st|ttfdd}fdd}tj|}t|}trRtj}tj} nt j j tj }t j j tj } t j j||0} t| |tj| d||| t j j| VWdQRXdS)zRead an archive from a seekable file-like object. The `file` object must support the standard `readinto` and 'seek' methods. cs$j}t|tt}|d<|S)Nr)readintor rr ) archive_pcontextZptrptrlength)bufbuf_pfileK/usr/local/lib/python3.6/site-packages/fsspec/implementations/libarchive.py read_func,s z custom_reader..read_funccsj||jS)N)seektell)rroffsetwhence)rrr seek_func5s z custom_reader..seek_funcN)r r r ffiZ READ_CALLBACK SEEK_CALLBACKnew_apirZ NO_CLOSE_CB libarchivereadZ OPEN_CALLBACKZVOID_CBZCLOSE_CALLBACKZnew_archive_readrZ read_openZ ArchiveRead) r format_nameZ filter_name block_sizerr"Zread_cbZseek_cbZopen_cbZclose_cbrr)rrrr custom_reader#s    r*csbeZdZdZdZdZddddeffdd Zedd Z e fd d Z d d Z dddZ ZS)LibArchiveFileSystemayCompressed archives as a file-system (read-only) Supports the following formats: tar, pax , cpio, ISO9660, zip, mtree, shar, ar, raw, xar, lha/lzh, rar Microsoft CAB, 7-Zip, WARC See the libarchive documentation for further restrictions. https://www.libarchive.org/ Keeps file object open while instance lives. It only works in seekable file-like objects. In case the filesystem does not support this kind of file object, it is recommended to cache locally. This class is pickleable, but not necessarily thread-safe (depends on the platform). See libarchive documentation for details. r&rNc stj|f||dkr tdt|trft|fd|i|prrrBsz$LibArchiveFileSystem._strip_protocolc sdddddddd|jdk r"dSi|_g}|j}x|D]xj rRj rRq<|jjd d |jtjDfd d D}jrd nd |d<|jj||j|d<qsz2LibArchiveFileSystem._get_dirs..csi|]}t||qSr)getattr)rPkey)entryfieldsrrrRsrNrrOrLcSs"i|]}|dddd|dqS)rArrN)rLrGrOr)rPrQrrrrRs) r9r@isdirisfileupdateZ _all_dirnamessetrLappend)r:Z list_namesr?fr)rUrVr _get_dirss2    zLibArchiveFileSystem._get_dirsrbTc Ksx|j|}|dkrtt}|j@}x8|D]0} | j|krrr+Js! -r+)" __future__rrr contextlibrctypesrrrr r r r r&Zlibarchive.ffir#Zfsspecr Zfsspec.archiverZfsspec.implementations.memoryrZ fsspec.utilsrr$Z c_archive_pZ check_intrhasattrr%Z page_sizer*r+rrrrs $       &