Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for SameFile (0.07 sec)

  1. src/cmd/addr2line/addr2line_test.go

    	}
    
    	// Debug paths are stored slash-separated, so convert to system-native.
    	srcPath = filepath.FromSlash(srcPath)
    	fi2, err := os.Stat(srcPath)
    	if err != nil {
    		t.Fatalf("Stat failed: %v", err)
    	}
    	if !os.SameFile(fi1, fi2) {
    		t.Fatalf("addr2line_test.go and %s are not same file", srcPath)
    	}
    	if want := "102"; srcLineNo != want {
    		t.Fatalf("line number = %v; want %s", srcLineNo, want)
    	}
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Sep 06 13:23:48 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. internal/ioutil/ioutil_test.go

    	if err != nil {
    		t.Fatalf("Error Stat(): %v", err)
    	}
    	if !SameFile(fi1, fi2) {
    		t.Fatal("Expected the files to be same")
    	}
    	if err = os.WriteFile(tmpFile, []byte("aaa"), 0o644); err != nil {
    		t.Fatal(err)
    	}
    	fi2, err = os.Stat(tmpFile)
    	if err != nil {
    		t.Fatalf("Error Stat(): %v", err)
    	}
    	if SameFile(fi1, fi2) {
    		t.Fatal("Expected the files not to be same")
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. internal/ioutil/ioutil.go

    	bufp := ODirectPoolMedium.Get().(*[]byte)
    	defer ODirectPoolMedium.Put(bufp)
    	buf := *bufp
    
    	return io.CopyBuffer(writerOnly{dst}, src, buf)
    }
    
    // SameFile returns if the files are same.
    func SameFile(fi1, fi2 os.FileInfo) bool {
    	if !os.SameFile(fi1, fi2) {
    		return false
    	}
    	if !fi1.ModTime().Equal(fi2.ModTime()) {
    		return false
    	}
    	if fi1.Mode() != fi2.Mode() {
    		return false
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 26 12:55:01 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. api/except.txt

    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
    pkg os, method (*File) Readdir(int) ([]FileInfo, error)
    pkg os, method (*File) Stat() (FileInfo, 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)
  5. api/go1.4.txt

    pkg syscall (windows-amd64), type ProcessEntry32 struct, Threads uint32
    pkg syscall (windows-amd64), type ProcessEntry32 struct, Usage uint32
    
    # CL 127740043 os: make SameFile handle paths like c:a.txt properly, Alex Brainman <******@****.***>
    pkg syscall (windows-386), func FullPath(string) (string, error)
    pkg syscall (windows-amd64), func FullPath(string) (string, error)
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Dec 12 03:01:01 UTC 2014
    - 34K bytes
    - Viewed (0)
  6. cmd/xl-storage.go

    		s.RUnlock()
    		return diskID, nil
    	}
    	s.RUnlock()
    
    	fi, err := s.checkFormatJSON()
    	if err != nil {
    		return "", err
    	}
    
    	if xioutil.SameFile(fi, fileInfo) && diskID != "" {
    		s.Lock()
    		// If the file has not changed, just return the cached diskID information.
    		s.formatLastCheck = time.Now()
    		s.Unlock()
    		return diskID, nil
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  7. api/go1.16.txt

    pkg os, func OpenFile(string, int, fs.FileMode) (*File, error)
    pkg os, func ReadDir(string) ([]fs.DirEntry, error)
    pkg os, func ReadFile(string) ([]uint8, error)
    pkg os, func SameFile(fs.FileInfo, fs.FileInfo) bool
    pkg os, func Stat(string) (fs.FileInfo, error)
    pkg os, func WriteFile(string, []uint8, fs.FileMode) error
    pkg os, method (*File) Chmod(fs.FileMode) error
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Dec 02 16:30:41 UTC 2022
    - 479.2K bytes
    - Viewed (0)
  8. api/go1.txt

    pkg os, func Pipe() (*File, *File, error)
    pkg os, func Readlink(string) (string, error)
    pkg os, func Remove(string) error
    pkg os, func RemoveAll(string) error
    pkg os, func Rename(string, string) error
    pkg os, func SameFile(FileInfo, FileInfo) bool
    pkg os, func Setenv(string, string) error
    pkg os, func StartProcess(string, []string, *ProcAttr) (*Process, error)
    pkg os, func Stat(string) (FileInfo, error)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top