Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for initFileList (0.06 seconds)

  1. src/archive/zip/reader.go

    	p := path.Clean(name)
    
    	p = strings.TrimPrefix(p, "/")
    
    	for strings.HasPrefix(p, "../") {
    		p = p[len("../"):]
    	}
    
    	return p
    }
    
    func (r *Reader) initFileList() {
    	r.fileListOnce.Do(func() {
    		// Preallocate the minimum size of the index.
    		// We may also synthesize additional directory entries.
    		r.fileList = make([]fileListEntry, 0, len(r.File))
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Jan 15 18:35:56 GMT 2026
    - 28.5K bytes
    - Click Count (0)
Back to Top