Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 134 for FilePath (0.06 seconds)

  1. utils/utils.go

    	"database/sql/driver"
    	"fmt"
    	"path/filepath"
    	"reflect"
    	"runtime"
    	"strconv"
    	"strings"
    	"unicode"
    )
    
    var gormSourceDir string
    
    func init() {
    	_, file, _, _ := runtime.Caller(0)
    	// compatible solution to get gorm source directory with various operating systems
    	gormSourceDir = sourceDir(file)
    }
    
    func sourceDir(file string) string {
    	dir := filepath.Dir(file)
    	dir = filepath.Dir(dir)
    
    	s := filepath.Dir(dir)
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Thu Oct 30 10:56:26 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  2. cmd/xl-storage.go

    		return errFileNotFound
    	}
    
    	// Validate file path length, before reading.
    	filePath := pathJoin(volumeDir, path)
    	if err = checkPathLength(filePath); err != nil {
    		return err
    	}
    
    	srcFilePath := pathJoin(filePath, xlStorageFormatFileV1)
    	dstFilePath := pathJoin(filePath, xlStorageFormatFile)
    
    	// Renaming xl.json to xl.meta should be fully synced to disk.
    	defer func() {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 91.7K bytes
    - Click Count (0)
  3. cmd/bitrot-streaming.go

    func newStreamingBitrotReader(disk StorageAPI, data []byte, volume, filePath string, tillOffset int64, algo BitrotAlgorithm, shardSize int64) *streamingBitrotReader {
    	h := algo.New()
    	return &streamingBitrotReader{
    		disk:       disk,
    		data:       data,
    		volume:     volume,
    		filePath:   filePath,
    		tillOffset: ceilFrac(tillOffset, shardSize)*int64(h.Size()) + tillOffset,
    		h:          h,
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Jan 17 19:19:30 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  4. internal/s3select/json/preader_test.go

    package json
    
    import (
    	"bytes"
    	"io"
    	"os"
    	"path/filepath"
    	"testing"
    
    	"github.com/minio/minio/internal/s3select/sql"
    )
    
    func TestNewPReader(t *testing.T) {
    	files, err := os.ReadDir("testdata")
    	if err != nil {
    		t.Fatal(err)
    	}
    	for _, file := range files {
    		t.Run(file.Name(), func(t *testing.T) {
    			f, err := os.Open(filepath.Join("testdata", file.Name()))
    			if err != nil {
    				t.Fatal(err)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  5. internal/s3select/json/reader_test.go

    package json
    
    import (
    	"bytes"
    	"io"
    	"os"
    	"path/filepath"
    	"testing"
    
    	"github.com/minio/minio/internal/s3select/sql"
    )
    
    func TestNewReader(t *testing.T) {
    	files, err := os.ReadDir("testdata")
    	if err != nil {
    		t.Fatal(err)
    	}
    	for _, file := range files {
    		t.Run(file.Name(), func(t *testing.T) {
    			f, err := os.Open(filepath.Join("testdata", file.Name()))
    			if err != nil {
    				t.Fatal(err)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  6. misc/ios/go_ios_exec.go

    	// the package being tested and the source root.
    	pkgpath = ""
    	for element := range strings.SplitSeq(finalPkgpath, string(filepath.Separator)) {
    		if debug {
    			log.Printf("copying %s", pkgpath)
    		}
    		pkgpath = filepath.Join(pkgpath, element)
    		dst := filepath.Join(dstbase, pkgpath)
    		src := filepath.Join(cwd, pkgpath)
    		if err := copyLocalDir(dst, src); err != nil {
    			return "", err
    		}
    	}
    
    	if underGoRoot {
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Sep 16 00:34:45 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  7. cmd/bitrot_test.go

    func testBitrotReaderWriterAlgo(t *testing.T, bitrotAlgo BitrotAlgorithm) {
    	tmpDir := t.TempDir()
    
    	volume := "testvol"
    	filePath := "testfile"
    
    	disk, err := newLocalXLStorage(tmpDir)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	disk.MakeVol(t.Context(), volume)
    
    	writer := newBitrotWriter(disk, "", volume, filePath, 35, bitrotAlgo, 10)
    
    	_, err = writer.Write([]byte("aaaaaaaaaa"))
    	if err != nil {
    		t.Fatal(err)
    	}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Apr 09 14:28:39 GMT 2025
    - 2K bytes
    - Click Count (0)
  8. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/FixProjectHealthTask.kt

                    }
    
                    currentFilePath?.let { filePath ->
                        when {
                            line.contains("These transitive dependencies should be declared directly:") -> {
                                dependencyFixes.addToMap(filePath, extractDependencies(index))
                            }
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Mar 03 06:57:08 GMT 2025
    - 6.2K bytes
    - Click Count (1)
  9. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/FileProfileActivatorTest.java

        }
    
        private Profile newExistsProfile(String filePath) {
            ActivationFile activationFile =
                    ActivationFile.newBuilder().exists(filePath).build();
            return newProfile(activationFile);
        }
    
        private Profile newMissingProfile(String filePath) {
            ActivationFile activationFile =
                    ActivationFile.newBuilder().missing(filePath).build();
            return newProfile(activationFile);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  10. cmd/bitrot.go

    func newBitrotWriter(disk StorageAPI, origvolume, volume, filePath string, length int64, algo BitrotAlgorithm, shardSize int64) io.Writer {
    	if algo == HighwayHash256S {
    		return newStreamingBitrotWriter(disk, origvolume, volume, filePath, length, algo, shardSize)
    	}
    	return newWholeBitrotWriter(disk, volume, filePath, algo, shardSize)
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 7.7K bytes
    - Click Count (0)
Back to Top