Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for saveFile (0.22 sec)

  1. 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")
    	}
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 02 11:02:31 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  2. internal/ioutil/ioutil.go

    	bufp := copyBufPool.Get().(*[]byte)
    	buf := *bufp
    	defer copyBufPool.Put(bufp)
    
    	return io.CopyBuffer(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
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 11:26:59 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  3. 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 := "124"; srcLineNo != want {
    		t.Fatalf("line number = %v; want %s", srcLineNo, want)
    	}
    }
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Feb 21 22:16:54 GMT 2024
    - 3.8K 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)
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu May 25 00:13:30 GMT 2023
    - 34.6K 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)
    
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Dec 12 03:01:01 GMT 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
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K 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
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Dec 02 16:30:41 GMT 2022
    - 479.2K bytes
    - Viewed (0)
  8. RELEASE.md

        *   Add `tf.contrib.bayesflow.layers`, a collection of probabilistic
            (neural) layers.
        *   Add `tf.contrib.bayesflow.halton_sequence`.
        *   Add `tf.contrib.data.make_saveable_from_iterator.`
        *   Add `tf.contrib.data.shuffle_and_repeat`.
        *   Add new custom transformation: `tf.contrib.data.scan()`.
        *   `tf.contrib.distributions.bijectors`:
    Plain Text
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Apr 03 20:27:38 GMT 2024
    - 727.4K bytes
    - Viewed (8)
  9. 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)
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
Back to top