Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for LSTAT (0.23 sec)

  1. src/cmd/go/internal/fsys/fsys.go

    	Trace("Walk", root)
    	info, err := Lstat(root)
    	if err != nil {
    		err = walkFn(root, nil, err)
    	} else {
    		err = walk(root, info, walkFn)
    	}
    	if err == filepath.SkipDir {
    		return nil
    	}
    	return err
    }
    
    // Lstat implements a version of os.Lstat that operates on the overlay filesystem.
    func Lstat(path string) (fs.FileInfo, error) {
    	Trace("Lstat", path)
    	return overlayStat(path, os.Lstat, "lstat")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:35:34 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  2. src/os/stat_windows.go

    func statNolog(name string) (FileInfo, error) {
    	return stat("Stat", name, true)
    }
    
    // lstatNolog implements Lstat for Windows.
    func lstatNolog(name string) (FileInfo, error) {
    	followSurrogates := false
    	if name != "" && IsPathSeparator(name[len(name)-1]) {
    		// We try to implement POSIX semantics for Lstat path resolution
    		// (per https://pubs.opengroup.org/onlinepubs/9699919799.2013edition/basedefs/V1_chap04.html#tag_04_12):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. src/path/filepath/path.go

    //
    // Walk calls the function with a non-nil err argument in two cases.
    //
    // First, if an [os.Lstat] on the root directory or any directory or file
    // in the tree fails, Walk calls the function with path set to that
    // directory or file's path, info set to nil, and err set to the error
    // from os.Lstat.
    //
    // Second, if a directory's Readdirnames method fails, Walk calls the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  4. doc/next/6-stdlib/99-minor/os/61893.md

    On Windows, the mode bits reported by [Lstat] and [Stat] for
    reparse points changed. Mount points no longer have [ModeSymlink] set,
    and reparse points that are not symlinks, Unix sockets, or dedup files
    now always have [ModeIrregular] set.
    This behavior is controlled by the `winsymlink` setting.
    For Go 1.23, it defaults to `winsymlink=1`.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 20:57:18 UTC 2024
    - 386 bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top