Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for initFileList (0.18 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() {
    		// files and knownDirs map from a file/directory name
    		// to an index into the r.fileList entry that we are
    		// building. They are used to mark duplicate entries.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
Back to top