Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for saveInfoFromPath (0.48 sec)

  1. src/os/stat_windows.go

    		// The information we got from GetFileAttributesEx is good enough for now.
    		fs := newFileStatFromWin32FileAttributeData(&fa)
    		if err := fs.saveInfoFromPath(name); err != nil {
    			return nil, err
    		}
    		return fs, nil
    	}
    
    	// GetFileAttributesEx fails with ERROR_SHARING_VIOLATION error for
    	// files like c:\pagefile.sys. Use FindFirstFile for such files.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. src/os/types_windows.go

    	}
    	fs.path = ""
    	fs.vol = i.VolumeSerialNumber
    	fs.idxhi = i.FileIndexHigh
    	fs.idxlo = i.FileIndexLow
    	return nil
    }
    
    // saveInfoFromPath saves full path of the file to be used by os.SameFile later,
    // and set name from path.
    func (fs *fileStat) saveInfoFromPath(path string) error {
    	fs.path = path
    	if !filepathlite.IsAbs(fs.path) {
    		var err error
    		fs.path, err = syscall.FullPath(fs.path)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top