src/server/pkg/obj/obj.go
func BlockPathFromEnv(block *pfs.Block) (string, error) {
	storageRoot, err := StorageRootFromEnv()
	if err != nil {
		return "", err
	}
	return filepath.Join(storageRoot, "block", block.Hash), nil
}
func BlockPathFromEnv(block *pfs.Block) (string, error) {
	storageRoot, err := StorageRootFromEnv()
	if err != nil {
		return "", err
	}
	return filepath.Join(storageRoot, "block", block.Hash), nil
}
func BlockPathFromEnv ( block * pfs . Block ) ( string , error ) { storageRoot , err := StorageRootFromEnv ( ) if err != nil { return " " , err } return filepath . Join ( storageRoot , " " , block . Hash ) , nil }
// BlockPathFromEnv gets the path to an object storage block based on environment variables.
BlockPathFromEnv gets the path to an object storage block based on environment variables .