Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for baseIsDotDot (0.12 sec)

  1. src/path/filepath/symlink_windows.go

    	if err != nil {
    		return "", err
    	}
    	syscall.FindClose(h)
    
    	return syscall.UTF16ToString(data.FileName[:]), nil
    }
    
    // baseIsDotDot reports whether the last element of path is "..".
    // The given path should be 'Clean'-ed in advance.
    func baseIsDotDot(path string) bool {
    	i := strings.LastIndexByte(path, Separator)
    	return path[i+1:] == ".."
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 24 07:42:17 UTC 2023
    - 2.9K bytes
    - Viewed (0)
Back to top