Home | History | Annotate | Download | only in python2.7

Lines Matching refs:Directory

47 # The "end of central directory" structure, magic number, size, and indices
66 # The "central directory" structure, magic number, size, and indices
72 # indexes of entries in the central directory structure
112 # The "Zip64 end of central directory locator" structure, magic number, and size
117 # The "Zip64 end of central directory" record, magic number, size, and indices
202 """Return data from the "End of Central Directory" record, or None.
212 # "end of central directory" structure should be the last item in the
230 # Try to read the "Zip64 end of central directory" structure
234 # comment. Search the end of the file for the "end of central directory"
236 # up to 64K long. It is assumed that the "end of central directory" magic
254 # Try to read the "Zip64 end of central directory" structure
258 # Unable to find a valid end of central directory structure
296 # forward slashes as the directory separator, as required by the
768 # set the modified flag so central directory gets written
775 # seek to start of directory and overwrite
781 # set the modified flag so central directory gets written
810 size_cd = endrec[_ECD_SIZE] # bytes in central directory
811 offset_cd = endrec[_ECD_OFFSET] # offset of central directory
823 # self.start_dir: Position of start of central directory
832 raise BadZipfile("Truncated central directory")
835 raise BadZipfile("Bad magic number for central directory")
859 # update total bytes read from central directory
975 'File name in directory "%s" and header "%s" differ.' % (
1013 """Extract a member from the archive to the current working directory,
1016 specify a different directory using `path'.
1028 directory. `path' specifies a different directory to extract to.
1257 for zinfo in self.filelist: # write central directory
1359 If pathname is a package directory, search the directory and
1362 directory, listdir *.py and enter all modules. Else, pathname
1372 # This is a package directory, add it
1391 # This is a package directory, add it
1400 # This is NOT a package directory, add its files at top level
1402 print "Adding files from directory", pathname