Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 85 for lstat (0.02 sec)

  1. doc/godebug.md

    There are no runtime metrics for this change,
    This setting may be removed in a future release, Go 1.27 at the earliest.
    
    Go 1.23 changed the mode bits reported by [`os.Lstat`](/pkg/os#Lstat) and [`os.Stat`](/pkg/os#Stat)
    for reparse points, which can be controlled with the `winsymlink` setting.
    As of Go 1.23 (`winsymlink=1`), mount points no longer have [`os.ModeSymlink`](/pkg/os#ModeSymlink)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Oct 28 14:46:33 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    		if err := checkPathLength(filePath); err != nil {
    			return stat, err
    		}
    		st, _ := Lstat(filePath)
    		if st == nil {
    			if !skipAccessChecks(volume) {
    				// Stat a volume entry.
    				if verr := Access(volumeDir); verr != nil {
    					return stat, convertAccessError(verr, errVolumeAccessDenied)
    				}
    			}
    			return stat, errPathNotFound
    		}
    		name, err := filepath.Rel(volumeDir, filePath)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  3. lib/wasm/wasm_exec.js

    			fchown(fd, uid, gid, callback) { callback(enosys()); },
    			fstat(fd, callback) { callback(enosys()); },
    			fsync(fd, callback) { callback(null); },
    			ftruncate(fd, length, callback) { callback(enosys()); },
    			lchown(path, uid, gid, callback) { callback(enosys()); },
    			link(path, link, callback) { callback(enosys()); },
    			lstat(path, callback) { callback(enosys()); },
    			mkdir(path, perm, callback) { callback(enosys()); },
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Aug 30 19:15:21 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  4. cmd/metacache-walk.go

    			// behavior.
    			if err := send(metaCacheEntry{
    				name:     opts.BaseDir,
    				metadata: metadata,
    			}); err != nil {
    				return err
    			}
    		} else {
    			st, sterr := Lstat(pathJoin(volumeDir, opts.BaseDir, xlStorageFormatFile))
    			if sterr == nil && st.Mode().IsRegular() {
    				return errFileNotFound
    			}
    		}
    	}
    
    	prefix := opts.FilterPrefix
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 01 05:17:37 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  5. src/archive/tar/tar_test.go

    	testenv.MustHaveSymlink(t)
    
    	tmpdir := t.TempDir()
    
    	link := filepath.Join(tmpdir, "link")
    	target := tmpdir
    	if err := os.Symlink(target, link); err != nil {
    		t.Fatal(err)
    	}
    	fi, err := os.Lstat(link)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	h, err := FileInfoHeader(fi, target)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if g, e := h.Name, fi.Name(); g != e {
    		t.Errorf("Name = %q; want %q", g, e)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  6. cmd/format-erasure.go

    	}
    
    	migrate := func(formatPath string, formatData []byte) ([]byte, fs.FileInfo, error) {
    		if err = os.WriteFile(formatPath, formatData, 0o666); err != nil {
    			return nil, nil, err
    		}
    		formatFi, err := Lstat(formatPath)
    		if err != nil {
    			return nil, nil, err
    		}
    		return formatData, formatFi, nil
    	}
    
    	switch version {
    	case formatErasureVersionV1:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  7. api/except.txt

    pkg os, const ModeType FileMode
    pkg os, func Chmod(string, FileMode) error
    pkg os, func Lstat(string) (FileInfo, error)
    pkg os, func Mkdir(string, FileMode) error
    pkg os, func MkdirAll(string, FileMode) error
    pkg os, func OpenFile(string, int, FileMode) (*File, error)
    pkg os, func SameFile(FileInfo, FileInfo) bool
    pkg os, func Stat(string) (FileInfo, error)
    pkg os, method (*File) Chmod(FileMode) error
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Sun Jun 16 23:08:08 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  8. cmd/bucket-replication-stats.go

    				ReplicatedSize:  stat.ReplicatedSize + oldst.ReplicatedSize,
    				ReplicatedCount: stat.ReplicatedCount + oldst.ReplicatedCount,
    				Latency:         stat.Latency.merge(oldst.Latency),
    				XferRateLrg:     &lrg,
    				XferRateSml:     &sml,
    			}
    			totReplicatedSize += stat.ReplicatedSize
    			totReplicatedCount += stat.ReplicatedCount
    			totFailed = totFailed.merge(stat.FailStats)
    		}
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  9. cmd/bucket-replication-metrics.go

    		Max:  a.Max,
    	}
    	return w
    }
    
    // QStat holds queue stats for replication
    type QStat struct {
    	Count float64 `json:"count"`
    	Bytes float64 `json:"bytes"`
    }
    
    func (q *QStat) add(o QStat) QStat {
    	return QStat{Bytes: q.Bytes + o.Bytes, Count: q.Count + o.Count}
    }
    
    // InQueueMetric holds queue stats for replication
    type InQueueMetric struct {
    	Curr QStat `json:"curr" msg:"cq"`
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  10. cmd/sftp-server-driver.go

    		)
    		return err
    	}
    
    	return NotImplemented{}
    }
    
    type listerAt []os.FileInfo
    
    // Modeled after strings.Reader's ReadAt() implementation
    func (f listerAt) ListAt(ls []os.FileInfo, offset int64) (int, error) {
    	var n int
    	if offset >= int64(len(f)) {
    		return 0, io.EOF
    	}
    	n = copy(ls, f[offset:])
    	if n < len(ls) {
    		return n, io.EOF
    	}
    	return n, nil
    }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 05 07:51:13 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top