// Path builds the device node path (in /dev)
Path builds the device node path (in /dev)
// Path builds the device node path ( in / dev )
func (r DeviceName) Path() string {
	if len(r) > 0 && !strings.HasPrefix(string(r), "/dev") {
		return filepath.Join("/dev", string(r))
	}
	return string(r)
}
func ( r DeviceName ) Path ( ) string { if len ( r ) > 0 && ! strings . HasPrefix ( string ( r ) , " " ) { return filepath . Join ( " " , string ( r ) ) } return string ( r ) }
Path builds the device node path (in /dev)
Path builds the device node path ( in / dev )