Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 12 of 12 for scanf (0.03 sec)

  1. cmd/xl-storage-format-v1.go

    		return err
    	}
    	sum, err := hex.DecodeString(info.Hash)
    	if err != nil {
    		return err
    	}
    	c.Algorithm = BitrotAlgorithmFromString(info.Algorithm)
    	c.Hash = sum
    	if _, err = fmt.Sscanf(info.Name, "part.%d", &c.PartNumber); err != nil {
    		return err
    	}
    
    	if !c.Algorithm.Available() {
    		internalLogIf(GlobalContext, errBitrotHashAlgoInvalid)
    		return errBitrotHashAlgoInvalid
    	}
    	return nil
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. cmd/os_unix.go

    	i := len(dirPath)
    	for i > 0 && os.IsPathSeparator(dirPath[i-1]) { // Skip trailing path separator.
    		i--
    	}
    
    	j := i
    	for j > 0 && !os.IsPathSeparator(dirPath[j-1]) { // Scan backward over element.
    		j--
    	}
    
    	if j > 1 {
    		// Create parent.
    		if err := osMkdirAll(dirPath[:j-1], perm, baseDir); err != nil {
    			return err
    		}
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top