Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for initFileList (0.05 sec)

  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))
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Mar 11 22:19:38 UTC 2025
    - 28.4K bytes
    - Viewed (0)
Back to top