0x1949 Team - FAZEMRX - MANAGER
Edit File: zippath.cpython-310.pyc
o �bD# � @ s� d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z ddl mZmZ ddl mZmZmZmZmZ dZee e�G d d � d e���ZG dd� de�Zdd gZdS ) zt This module contains implementations of L{IFilePath} for zip files. See the constructor of L{ZipArchive} for use. � N)�Dict)�ZipFile)�implementer)�cmp� comparable)�AbstractFilePath�FilePath� IFilePath�UnlistableError�_coerceToFilesystemEncoding�/c @ s� e Zd ZdZdd� Zdd� Zdefdd�Zed d � �Z dd� Z d d� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd � Zd/d"d#�Zd$d%� Zd&d'� Zd(d)� Zd*d+� Zd,d-� Zd.S )0�ZipPathzF I represent a file or directory contained within a zip file. c C sF || _ || _t|t�}t||jj�}tjj|g| j� |��R � | _dS )z� Don't construct me directly. Use C{ZipArchive.child()}. @param archive: a L{ZipArchive} instance. @param pathInArchive: a ZIP_PATH_SEP-separated string. N) �archive� pathInArchiver �ZIP_PATH_SEP�zipfile�filename�os�path�join�split)�selfr r �sep�archiveFilename� r �8/usr/lib/python3/dist-packages/twisted/python/zippath.py�__init__( s �"zZipPath.__init__c C s( t |t�stS t| j| jf|j|jf�S �N)� isinstancer �NotImplementedr r r )r �otherr r r �__cmp__; s �zZipPath.__cmp__�returnc C sN t | jtj�| jj��g}|�| j�| j�� t | jtj�}d|� |��d�S )NzZipPath(�)) r r r r �abspathr �extendr r r )r �parts�ossepr r r �__repr__B s �zZipPath.__repr__c C s t | jt�S )z� Return a zip directory separator. @return: The zip directory separator. @returntype: The same type as C{self.path}. )r r r �r r r r r J s zZipPath.sepc C s<