Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Oconcat (0.34 sec)

  1. cmd/os_unix.go

    			}
    
    			typ = fi.Mode() & os.ModeType
    		}
    
    		var nameStr string
    		if typ.IsRegular() {
    			nameStr = string(name)
    		} else if typ.IsDir() {
    			// Use temp buffer to append a slash to avoid string concat.
    			tmp = tmp[:len(name)+1]
    			copy(tmp, name)
    			tmp[len(tmp)-1] = '/' // SlashSeparator
    			nameStr = string(tmp)
    		}
    
    		count--
    		entries = append(entries, nameStr)
    	}
    
    	return
    }
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.3K bytes
    - Viewed (0)
Back to top