403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/twisted/python/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/twisted/python/zippath.pyc
ó
ē~Mc@sÖdZeZddlZddlZddlZddlZejd d
krheZ	ddl
mZneZ	ddl
mZddlmZmZdZd	efd
„ƒYZdefd„ƒYZdd	gZdS(sä
This module contains partial re-implementations of FilePath, pending some
specification of formal interfaces it is a duck-typing attempt to emulate them
for certain restricted uses.

See the constructor for ZipArchive for use.
i’’’’Nii(tZipFile(tChunkingZipFile(tFilePatht_PathHelpert/tZipPathcBs¹eZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(sF
    I represent a file or directory contained within a zip file.
    cCs@||_||_tjj|jj|jjtƒŒ|_dS(s·
        Don't construct me directly.  Use ZipArchive.child().

        @param archive: a ZipArchive instance.

        @param pathInArchive: a ZIP_PATH_SEP-separated string.
        N(	tarchivet
pathInArchivetostpathtjointzipfiletfilenametsplittZIP_PATH_SEP(tselfRR((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pyt__init__+s		cCs8t|tƒstSt|j|jf|j|jfƒS(N(t
isinstanceRtNotImplementedtcmpRR(Rtother((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pyt__cmp__:scCsZtjj|jjƒg}|j|jjtƒƒtjj	|ƒ}d|j
dƒfS(Ns
ZipPath('%s')s
string-escape(RR	tabspathRtextendRR
RtsepR
tencode(RtpartsR	((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pyt__repr__AscCsH|jjtƒ}t|ƒdkr+|jSt|jtj|d ƒƒS(Nii’’’’(RR
RtlenRRR
(Rtsplitup((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pytparentHscCs"t|jtj|j|gƒƒS(s&
        Return a new ZipPath representing a path in C{self.archive} which is
        a child of this path.

        @note: Requesting the C{".."} (or other special name) child will not
            cause L{InsecurePath} to be raised since these names do not have
            any special meaning inside a zip archive.  Be particularly
            careful with the C{path} attribute (if you absolutely must use
            it) as this means it may include special names with special
            meaning outside of the context of a zip archive.
        (RRRR
R(RR	((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pytchildOscCs|jƒj|ƒS(N(RR(RR	((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pytsibling^scCs|jƒp|jƒS(N(tisdirtisfile(R((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pytexistscscCs|j|jjkS(N(RRtchildmap(R((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pyR!fscCs|j|jjjkS(N(RRRt
NameToInfo(R((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pyR"iscCstS(N(tFalse(R((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pytislinklscCsZ|jƒrD|jƒr/|jj|jjƒSttjdƒ‚nttj	dƒ‚dS(NsLeaf zip entry listedsNon-existent zip entry listed(
R#R!RR$RtkeystOSErrorterrnotENOTDIRtENOENT(R((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pytlistdiros
cCstjj|jƒS(sN
        Return a value similar to that returned by os.path.splitext.
        (RR	tsplitext(R((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pyR.yscCs|jjtƒdS(Ni’’’’(RR
R(R((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pytbasenameƒscCs
|jƒjS(N(RR	(R((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pytdirname†scCs6tr|jjj|jƒS|jjj|jƒSdS(N(t_USE_ZIPFILERRtopenRtreadfile(R((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pyR2‹scCsdS(N((R((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pytrestat‘scCs
|jjƒS(s±
        Retrieve this file's last access-time.  This is the same as the last access
        time for the archive.

        @return: a number of seconds since the epoch
        (Rt
getAccessTime(R((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pyR5•scCs$tj|jjj|jjdƒS(sø
        Retrieve this file's last modification time.  This is the time of
        modification recorded in the zipfile.

        @return: a number of seconds since the epoch.
        i(iii(ttimetmktimeRRR%Rt	date_time(R((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pytgetModificationTimeŸscCs
|jƒS(sĻ
        Retrieve this file's last modification time.  This name is provided for
        compatibility, and returns the same value as getmtime.

        @return: a number of seconds since the epoch.
        (R9(R((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pytgetStatusChangeTime«s(t__name__t
__module__t__doc__RRRRRR R#R!R"R'R-R.R/R0R2R4R5R9R:(((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pyR's(											
	
					
	t
ZipArchivecBs\eZdZed„ƒZd„Zd„Zd„Zd„Zd„Z	d„Z
d„ZRS(	s] I am a FilePath-like object which can wrap a zip archive as if it were a
    directory.
    cCs|S(N((R((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pyt<lambda>ŗscCsįtrt|ƒ|_nt|ƒ|_||_d|_i|_x˜|jjƒD]‡}|jt	ƒ}xit
t|ƒƒD]U}||}t	j|| ƒ}||jkr¾i|j|<nd|j||<qzWd}qRWdS(sCreate a ZipArchive, treating the archive at archivePathname as a zip file.

        @param archivePathname: a str, naming a path in the filesystem.
        tiN(
R1RRRR	RR$tnamelistR
RtrangeRR
(RtarchivePathnametnametxRR((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pyR»s			cCs
t||ƒS(sČ
        Create a ZipPath pointing at a path within the archive.

        @param path: a str with no path separators in it, either '/' or the
        system path separator, if it's different.
        (R(RR	((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pyRŌscCst|jjƒjƒS(s@
        Returns true if the underlying archive exists.
        (RRRR#(R((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pyR#ŻscCst|jjƒjƒS(s=
        Return the archive file's last access time.
        (RRRR5(R((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pyR5äscCst|jjƒjƒS(s>
        Return the archive file's modification time.
        (RRRR9(R((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pyR9ėscCst|jjƒjƒS(s?
        Return the archive file's status change time.
        (RRRR:(R((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pyR:ņscCsdtjj|jƒfS(NsZipArchive(%r)(RR	R(R((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pyRłs(R;R<R=tpropertyRRRR#R5R9R:R(((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pyR>¶s							(ii(R=ttypet
__metaclass__RR6R*tsystversion_infotTrueR1RRR&ttwisted.python.zipstreamRttwisted.python.filepathRRRRR>t__all__(((s:/usr/lib/python2.7/dist-packages/twisted/python/zippath.pyt<module>sG

Youez - 2016 - github.com/yon3zu
LinuXploit