Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 64 for LSTAT (0.06 sec)

  1. src/os/exec/lp_windows.go

    				//
    				// Otherwise, return the ErrDot for the implicit path as soon as we find
    				// out that the explicit one doesn't match.
    				dotfi, dotfiErr := os.Lstat(dotf)
    				fi, fiErr := os.Lstat(f)
    				if dotfiErr != nil || fiErr != nil || !os.SameFile(dotfi, fi) {
    					return dotf, dotErr
    				}
    			}
    
    			if !filepath.IsAbs(f) {
    				if execerrdot.Value() != "0" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. src/os/os_test.go

    					t.Error("present twice:", m)
    				}
    				found = true
    				lstat, err := Lstat(dir + "/" + m)
    				if err != nil {
    					t.Fatal(err)
    				}
    				if n.IsDir() != lstat.IsDir() {
    					t.Errorf("%s: IsDir=%v, want %v", m, n.IsDir(), lstat.IsDir())
    				}
    				if n.Type() != lstat.Mode().Type() {
    					t.Errorf("%s: IsDir=%v, want %v", m, n.Type(), lstat.Mode().Type())
    				}
    				info, err := n.Info()
    				if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  3. src/os/path.go

    		}
    	}
    
    	// Parent now exists; invoke Mkdir and use its result.
    	err = Mkdir(path, perm)
    	if err != nil {
    		// Handle arguments like "foo/." by
    		// double-checking that directory doesn't exist.
    		dir, err1 := Lstat(path)
    		if err1 == nil && dir.IsDir() {
    			return nil
    		}
    		return err
    	}
    	return nil
    }
    
    // RemoveAll removes path and any children it contains.
    // It removes everything it can but returns the first error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:09 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. pkg/volume/nfs/nfs.go

    }
    
    func (c *nfsUnmounter) TearDownAt(dir string) error {
    	// Use extensiveMountPointCheck to consult /proc/mounts. We can't use faster
    	// IsLikelyNotMountPoint (lstat()), since there may be root_squash on the
    	// NFS server and kubelet may not be able to do lstat/stat() there.
    	forceUnmounter, ok := c.mounter.(mount.MounterForceUnmounter)
    	if ok {
    		klog.V(4).Infof("Using force unmounter interface")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. src/os/file_unix.go

    )
    
    const _UTIME_OMIT = unix.UTIME_OMIT
    
    // fixLongPath is a noop on non-Windows platforms.
    func fixLongPath(path string) string {
    	return path
    }
    
    func rename(oldname, newname string) error {
    	fi, err := Lstat(newname)
    	if err == nil && fi.IsDir() {
    		// There are two independent errors this function can return:
    		// one for a bad oldname, and one for a bad newname.
    		// At this point we've determined the newname is bad.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:52:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  6. src/os/dir.go

    	readdirName readdirMode = iota
    	readdirDirEntry
    	readdirFileInfo
    )
    
    // Readdir reads the contents of the directory associated with file and
    // returns a slice of up to n [FileInfo] values, as would be returned
    // by [Lstat], in directory order. Subsequent calls on the same file will yield
    // further FileInfos.
    //
    // If n > 0, Readdir returns at most n FileInfo structures. In this case, if
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. src/os/os_windows_test.go

    			continue
    		}
    		if !os.SameFile(fi, fi1) {
    			t.Errorf("%q should point to %q", link, dir)
    			continue
    		}
    
    		fi2, err := os.Lstat(link)
    		if err != nil {
    			t.Errorf("failed to lstat link %v: %v", link, err)
    			continue
    		}
    		var wantType fs.FileMode
    		if test.isMountPoint && winsymlink.Value() != "0" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  8. src/os/types.go

    // File represents an open file descriptor.
    //
    // The methods of File are safe for concurrent use.
    type File struct {
    	*file // os specific
    }
    
    // A FileInfo describes a file and is returned by [Stat] and [Lstat].
    type FileInfo = fs.FileInfo
    
    // A FileMode represents a file's mode and permission bits.
    // The bits have the same definition on all systems, so that
    // information about files can be moved from one system
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. src/path/filepath/symlink.go

    		if len(dest) > filepathlite.VolumeNameLen(dest) && !os.IsPathSeparator(dest[len(dest)-1]) {
    			dest += pathSeparator
    		}
    
    		dest += path[start:end]
    
    		// Resolve symlink.
    
    		fi, err := os.Lstat(dest)
    		if err != nil {
    			return "", err
    		}
    
    		if fi.Mode()&fs.ModeSymlink == 0 {
    			if !fi.Mode().IsDir() && end < len(path) {
    				return "", syscall.ENOTDIR
    			}
    			continue
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. src/os/types_windows.go

    package os
    
    import (
    	"internal/filepathlite"
    	"internal/godebug"
    	"internal/syscall/windows"
    	"sync"
    	"syscall"
    	"time"
    	"unsafe"
    )
    
    // A fileStat is the implementation of FileInfo returned by Stat and Lstat.
    type fileStat struct {
    	name string
    
    	// from ByHandleFileInformation, Win32FileAttributeData, Win32finddata, and GetFileInformationByHandleEx
    	FileAttributes uint32
    	CreationTime   syscall.Filetime
    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