/usr/local/lib64/python3.6/site-packages/pyarrow/__pycache__
NameSizeModeActions
benchmark.cpython-36.pyc2080644editdlrm
cffi.cpython-36.pyc14820644editdlrm
compat.cpython-36.pyc3810644editdlrm
compute.cpython-36.pyc202630644editdlrm
csv.cpython-36.pyc3820644editdlrm
cuda.cpython-36.pyc4050644editdlrm
dataset.cpython-36.pyc279700644editdlrm
feather.cpython-36.pyc77390644editdlrm
filesystem.cpython-36.pyc144020644editdlrm
flight.cpython-36.pyc13530644editdlrm
fs.cpython-36.pyc103950644editdlrm
hdfs.cpython-36.pyc70550644editdlrm
ipc.cpython-36.pyc73940644editdlrm
json.cpython-36.pyc2310644editdlrm
jvm.cpython-36.pyc80350644editdlrm
orc.cpython-36.pyc51400644editdlrm
pandas_compat.cpython-36.pyc276950644editdlrm
parquet.cpython-36.pyc666090644editdlrm
plasma.cpython-36.pyc40690644editdlrm
serialization.cpython-36.pyc137370644editdlrm
types.cpython-36.pyc120830644editdlrm
util.cpython-36.pyc41500644editdlrm
_generated_version.cpython-36.pyc2230644editdlrm
__init__.cpython-36.pyc164760644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/pyarrow/__pycache__/fs.cpython-36.pyc (10395B)
3 8%Eg4@s dZddlmZmZddlmZmZmZmZm Z m Z m Z m Z m Z mZmZeZgZyddlmZWnek r~ejdYnXyddlmZmZmZmZWnek rejdYnXedd Zd d Zdd dZdddZddddddZGddde Z dS)zO FileSystem abstraction to interact with various local and remote filesystems. ) _is_path_like_stringify_path) FileSelectorFileTypeFileInfo FileSystemLocalFileSystemSubTreeFileSystem_MockFileSystemFileSystemHandler PyFileSystem _copy_files_copy_files_selector)HadoopFileSystemr) S3FileSystem S3LogLevel initialize_s3 finalize_s3rcCs(|tkrtdj|tdj|dS)Nz>> copy_files("s3://your-bucket-name", "local-directory") Using a FileSystem object: >>> copy_files("your-bucket-name", "local-directory", ... source_filesystem=S3FileSystem(...)) T) recursiveN)r4rrrr rrr ) source destinationZsource_filesystemZdestination_filesystemr5r6Z source_fs source_pathZdestination_fsZdestination_pathr2Z source_selrrr copy_filess+      r;c@seZdZdZddZddZddZdd Zd d Ze d d Z ddZ ddZ ddZ ddZddZddZddZddZddZd d!Zd"d#Zd$d%Zd&d'Zd(d)Zd*S)+r,a Handler for fsspec-based Python filesystems. https://filesystem-spec.readthedocs.io/en/latest/index.html Parameters ---------- fs : The FSSpec-compliant filesystem instance. Examples -------- >>> PyFileSystem(FSSpecHandler(fsspec_fs)) cCs ||_dS)N)fs)selfr<rrr__init__ szFSSpecHandler.__init__cCst|tr|j|jkStS)N)r(r,r<NotImplemented)r=otherrrr__eq__s  zFSSpecHandler.__eq__cCst|tr|j|jkStS)N)r(r,r<r?)r=r@rrr__ne__s  zFSSpecHandler.__ne__cCs$|jj}t|tr|d}dj|S)Nrz fsspec+{0})r<protocolr(listr)r=rCrrr get_type_names zFSSpecHandler.get_type_namecCs|S)Nr)r=r"rrrrszFSSpecHandler.normalize_pathcCsR|d}|ddkrtj}n|ddkr4tj}d}ntj}t||||jdddS)Nsizerfile directorymtime)rFrI)rFiler Unknownrget)r"inforFZftyperrr_create_file_info"s  zFSSpecHandler._create_file_infoc Cs`g}xV|D]N}y|jj|}Wn&tk rD|jt|tjYq X|j|j||q W|S)N)r<rMFileNotFoundErrorappendrrr1rN)r=pathsinfosr"rMrrrr/s zFSSpecHandler.get_file_infocCs|jj|js<|jj|jr(t|jn|jr2gSt|j|jrHd}nd}g}|jj|j|ddd}x&|j D]\}}|j |j ||qpW|S)NT)maxdepthZwithdirsdetail) r<isdirbase_direxistsNotADirectoryErrorZallow_not_foundrOr7finditemsrPrN)r=selectorrTrRZselected_filesr"rMrrrget_file_info_selector:s  z$FSSpecHandler.get_file_info_selectorc Cs.y|jj||dWntk r(YnXdS)N)Zcreate_parents)r<mkdirFileExistsError)r=r"r7rrr create_dirRszFSSpecHandler.create_dircCs|jj|dddS)NT)r7)r<rm)r=r"rrr delete_dirYszFSSpecHandler.delete_dircCsTxN|jj|ddD]:}|jj|r4|jj|ddq|jj|r|jj|qWdS)NF)rUT)r7)r<listdirrVraisfile)r=r"subpathrrr_delete_dir_contents\s   z"FSSpecHandler._delete_dir_contentscCs(|jddkrtd|d|j|dS)N/z$delete_dir_contents called on path '')stripr!rf)r=r"rrrdelete_dir_contentscs z!FSSpecHandler.delete_dir_contentscCs|jddS)Nrg)rf)r=rrrdelete_root_dir_contentsisz&FSSpecHandler.delete_root_dir_contentscCs$|jj|st||jj|dS)N)r<rXrOra)r=r"rrr delete_filels zFSSpecHandler.delete_filecCs|jj||dddS)NT)r7)r<mv)r=srcdestrrrmovesszFSSpecHandler.movecCs|jj||dS)N)r<copy)r=rorprrr copy_filevszFSSpecHandler.copy_filecCs8ddlm}|jj|s t|||jj|ddddS)Nr) PythonFilerb)moder)pyarrowrtr<rdrOopen)r=r"rtrrropen_input_stream}s  zFSSpecHandler.open_input_streamcCs8ddlm}|jj|s t|||jj|ddddS)Nr)rtru)rvrw)rxrtr<rdrOry)r=r"rtrrropen_input_files  zFSSpecHandler.open_input_filecCs$ddlm}||jj|ddddS)Nr)rtwb)rvw)rxrtr<ry)r=r"metadatartrrropen_output_streams z FSSpecHandler.open_output_streamcCs$ddlm}||jj|ddddS)Nr)rtab)rvr})rxrtr<ry)r=r"r~rtrrropen_append_streams z FSSpecHandler.open_append_streamN)r+ __module__ __qualname____doc__r>rArBrEr staticmethodrNrr]r`rbrfrkrlrmrqrsrzr{rrrrrrr,s*   r,)FF)NF)NNi)!rZ pyarrow.utilrrZ pyarrow._fsrrrrrr r r r r rZ FileStatsrZ pyarrow._hdfsrrrPZ pyarrow._s3fsrrrrrr&r/r4r;r,rrrrs(4  ) =<