Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for pathbuf (0.06 sec)

  1. internal/lock/lock_windows.go

    			// /../ is currently unhandled
    			return path
    		default:
    			pathbuf[w] = '\\'
    			w++
    			for ; r < n && !os.IsPathSeparator(path[r]); r++ {
    				pathbuf[w] = path[r]
    				w++
    			}
    		}
    	}
    	// A drive's root directory needs a trailing \
    	if w == len(`\\?\c:`) {
    		pathbuf[w] = '\\'
    		w++
    	}
    	return string(pathbuf[:w])
    }
    
    // Open - perm param is ignored, on windows file perms/NT acls
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  2. cmd/bitrot.go

    			// Premature failure in reading the object, file is corrupt.
    			return errFileCorrupt
    		}
    		if !bytes.Equal(h.Sum(nil), want) {
    			return errFileCorrupt
    		}
    		return nil
    	}
    
    	h := algo.New()
    	hashBuf := make([]byte, h.Size())
    	left := wantSize
    
    	// Calculate the size of the bitrot file and compare
    	// it with the actual file size.
    	if left != bitrotShardFileSize(partSize, shardSize, algo) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top