Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for fileEntryCompare (0.1 sec)

  1. src/archive/zip/reader.go

    						isDir: true,
    					}
    					r.fileList = append(r.fileList, entry)
    				}
    			}
    		}
    
    		slices.SortFunc(r.fileList, func(a, b fileListEntry) int {
    			return fileEntryCompare(a.name, b.name)
    		})
    	})
    }
    
    func fileEntryCompare(x, y string) int {
    	xdir, xelem, _ := split(x)
    	ydir, yelem, _ := split(y)
    	if xdir != ydir {
    		return strings.Compare(xdir, ydir)
    	}
    	return strings.Compare(xelem, yelem)
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Sat Aug 03 01:05:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
Back to top