Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 105 for Stat (0.13 sec)

  1. internal/ioutil/ioutil_test.go

    		t.Errorf("Error creating tmp file: %v", err)
    	}
    	tmpFile := f.Name()
    	f.Close()
    	defer os.Remove(f.Name())
    	fi1, err := os.Stat(tmpFile)
    	if err != nil {
    		t.Fatalf("Error Stat(): %v", err)
    	}
    	fi2, err := os.Stat(tmpFile)
    	if err != nil {
    		t.Fatalf("Error Stat(): %v", err)
    	}
    	if !SameFile(fi1, fi2) {
    		t.Fatal("Expected the files to be same")
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 02 11:02:31 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  2. docs/site-replication/run-multi-site-oidc.sh

    ./mc cp ./lrgfile minio1/newbucket
    sleep 5
    ./mc stat minio2/newbucket
    if [ $? -ne 0 ]; then
    	echo "expecting bucket to be present. exiting.."
    	exit_1
    fi
    
    ./mc stat minio3/newbucket
    if [ $? -ne 0 ]; then
    	echo "expecting bucket to be present. exiting.."
    	exit_1
    fi
    
    ./mc cp README.md minio2/newbucket/
    
    sleep 5
    ./mc stat minio1/newbucket/README.md
    if [ $? -ne 0 ]; then
    Shell Script
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 21:30:28 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  3. cmd/xl-storage-format-v1.go

    type xlMetaV1Object struct {
    	Version string   `json:"version"` // Version of the current `xl.meta`.
    	Format  string   `json:"format"`  // Format of the current `xl.meta`.
    	Stat    StatInfo `json:"stat"`    // Stat of the current object `xl.meta`.
    	// Erasure coded info for the current object `xl.meta`.
    	Erasure ErasureInfo `json:"erasure"`
    	// MinIO release tag for current object `xl.meta`.
    	Minio struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  4. cmd/data-usage-cache.go

    			for arn, stat := range flat.ReplicationStats.Targets {
    				bui.ReplicationInfo[arn] = BucketTargetUsageInfo{
    					ReplicationPendingSize:  stat.PendingSize,
    					ReplicatedSize:          stat.ReplicatedSize,
    					ReplicationFailedSize:   stat.FailedSize,
    					ReplicationPendingCount: stat.PendingCount,
    					ReplicationFailedCount:  stat.FailedCount,
    					ReplicatedCount:         stat.ReplicatedCount,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  5. cmd/xl-storage-format_test.go

    	}
    	if unMarshalXLMeta.Stat.Size != jsoniterXLMeta.Stat.Size {
    		t.Errorf("Expected the stat size to be %v, but got %v.", unMarshalXLMeta.Stat.Size, jsoniterXLMeta.Stat.Size)
    	}
    	if !unMarshalXLMeta.Stat.ModTime.Equal(jsoniterXLMeta.Stat.ModTime) {
    		t.Errorf("Expected the modTime to be \"%v\", but got \"%v\".", unMarshalXLMeta.Stat.ModTime, jsoniterXLMeta.Stat.ModTime)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  6. cmd/common-main.go

    		if file.Mode().IsRegular() || file.Name() == "CAs" || strings.HasPrefix(file.Name(), "..") {
    			continue
    		}
    		if file.Mode()&os.ModeSymlink == os.ModeSymlink {
    			file, err = Stat(filepath.Join(root.Name(), file.Name()))
    			if err != nil {
    				// not accessible ignore
    				continue
    			}
    			if !file.IsDir() {
    				continue
    			}
    		}
    
    		var (
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  7. cmd/os_other.go

    				break
    			}
    			err = osErrToFileErr(err)
    			if err == errFileNotFound {
    				return nil
    			}
    			return err
    		}
    		for _, fi := range fis {
    			if fi.Mode()&os.ModeSymlink == os.ModeSymlink {
    				fi, err = Stat(pathJoin(dirPath, fi.Name()))
    				if err != nil {
    					// It got deleted in the meantime, not found
    					// or returns too many symlinks ignore this
    					// file/directory.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Sep 13 15:14:36 GMT 2023
    - 4K bytes
    - Viewed (0)
  8. internal/grid/connection.go

    	// If the connection is lost, state will switch to StateConnecting.
    	StateConnected
    
    	// StateConnectionError is the state once a connection attempt has been made, and it failed.
    	// The connection will remain in this stat until the connection has been successfully re-established.
    	StateConnectionError
    
    	// StateShutdown is the state when the server has been shut down.
    	// This will not be used under normal operation.
    	StateShutdown
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
  9. internal/ioutil/read_file.go

    func ReadFileWithFileInfo(name string) ([]byte, fs.FileInfo, error) {
    	f, err := OsOpenFile(name, readMode, 0o666)
    	if err != nil {
    		return nil, nil, err
    	}
    	defer f.Close()
    
    	st, err := f.Stat()
    	if err != nil {
    		return nil, nil, err
    	}
    
    	dst := make([]byte, st.Size())
    	_, err = io.ReadFull(f, dst)
    	return dst, st, err
    }
    
    // ReadFile reads the named file and returns the contents.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 09 18:17:51 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  10. cmd/ftp-server-driver.go

    	startTime := time.Now()
    	source := getSource(2)
    	return func(err error) {
    		globalTrace.Publish(ftpTrace(s, startTime, source, strings.Join(paths, " "), err))
    	}
    }
    
    // Stat implements ftpDriver
    func (driver *ftpDriver) Stat(ctx *ftp.Context, objPath string) (fi os.FileInfo, err error) {
    	stopFn := globalFtpMetrics.log(ctx, objPath)
    	defer stopFn(err)
    
    	if objPath == SlashSeparator {
    		return &minioFileInfo{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 13.6K bytes
    - Viewed (0)
Back to top