/usr/local/lib/python3.6/site-packages/fsspec/implementations/__pycache__
Edit: /usr/local/lib/python3.6/site-packages/fsspec/implementations/__pycache__/dvc.cpython-36.pyc (2622B)
3
8%Egl ã @ sB d dl Z d dlZd dlmZ d dlmZ eƒ ZG dd„ deƒZdS )é N)ÚLocalFileSystem)ÚAbstractFileSystemc sR e Zd ZdZdZd‡ fdd„ Ze‡ fdd„ƒZdd d
„Zdd„ Z ddd„Z
‡ ZS )Ú
DVCFileSystemzÔDVC backend (experimental)
Load data files that are versioned using the `Data Version Control`_ system
.. _Data Version Control: https://dvc.org/
This interface is incomplete and experimental.
Ú Nc s, t ƒ jf |Ž tjj|ƒ| _| jjƒ | _dS )zœ
Parameters
----------
path: str (optional)
Location of the repo to access; defaults to the current directory.
N)ÚsuperÚ__init__ÚdvcÚrepoZRepoZ find_rootÚpath)Úselfr
Úkwargs)Ú __class__© úD/usr/local/lib/python3.6/site-packages/fsspec/implementations/dvc.pyr s zDVCFileSystem.__init__c s t ƒ j|ƒjdƒS )Nú/)r Ú_strip_protocolÚlstrip)Úclsr
)r
r r r # s zDVCFileSystem._strip_protocolFc sô | j ˆ ƒ‰ | jjjtjj| jjˆ ƒƒ}t|ƒ\}}}‡ fdd„|| D ƒ}g } xŽ|D ]†}
tjj| jj|
ƒ}t j
|ƒ}t j|ƒrŠ| j|ƒ nDy| jj
|ƒjƒ }
W n tjjk
r¸ wTY nX | jtf |
|—Žƒ |
| d d<