Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 93 for LSTAT (0.03 sec)

  1. src/os/removeall_test.go

    		for _, s := range []string{fpath, path + "/zzz"} {
    			if _, err = Lstat(s); err == nil {
    				t.Fatalf("Lstat %q succeeded after partial RemoveAll", s)
    			}
    		}
    	}
    	if err = RemoveAll(path); err != nil {
    		t.Fatalf("RemoveAll %q after partial RemoveAll: %s", path, err)
    	}
    	if _, err = Lstat(path); err == nil {
    		t.Fatalf("Lstat %q succeeded after RemoveAll (final)", path)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:21:29 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. pkg/volume/util/volumepathhandler/volume_path_handler.go

    // On other cases, return false with error from Lstat().
    func (v VolumePathHandler) IsSymlinkExist(mapPath string) (bool, error) {
    	fi, err := os.Lstat(mapPath)
    	if err != nil {
    		// If file doesn't exist, return false and no error
    		if os.IsNotExist(err) {
    			return false, nil
    		}
    		// Return error from Lstat()
    		return false, fmt.Errorf("failed to Lstat file %s: %v", mapPath, err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  3. 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)
  4. pkg/volume/volume_linux_test.go

    			tmpDir, err := utiltesting.MkTmpdir("volume_linux_test")
    			if err != nil {
    				t.Fatalf("error creating temp dir: %v", err)
    			}
    
    			defer os.RemoveAll(tmpDir)
    
    			info, err := os.Lstat(tmpDir)
    			if err != nil {
    				t.Fatalf("error reading permission of tmpdir: %v", err)
    			}
    
    			stat, ok := info.Sys().(*syscall.Stat_t)
    			if !ok || stat == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 03 19:34:37 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  5. 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)
  6. pkg/volume/util/subpath/subpath_windows.go

    			break
    		}
    		fileHandles = append(fileHandles, handle)
    
    		// make sure intermediate subPath directory does not contain symlink any more
    		stat, err := os.Lstat(currentFullPath)
    		if err != nil {
    			errorResult = fmt.Errorf("Lstat(%q) error: %v", currentFullPath, err)
    			break
    		}
    		if stat.Mode()&os.ModeSymlink != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 12:57:11 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/mod/zip/zip.go

    type File interface {
    	// Path returns a clean slash-separated relative path from the module root
    	// directory to the file.
    	Path() string
    
    	// Lstat returns information about the file. If the file is a symbolic link,
    	// Lstat returns information about the link itself, not the file it points to.
    	Lstat() (os.FileInfo, error)
    
    	// Open provides access to the data within a regular file. Open may return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 31K bytes
    - Viewed (0)
  8. src/cmd/go/internal/fsys/fsys_test.go

    			initOverlay(t, tc.overlay)
    			got, err := Lstat(tc.path)
    			if tc.wantErr {
    				if err == nil {
    					t.Errorf("lstat(%q): got no error, want error", tc.path)
    				}
    				return
    			}
    			if err != nil {
    				t.Fatalf("lstat(%q): got error %v, want no error", tc.path, err)
    			}
    			if got.Name() != tc.want.name {
    				t.Errorf("lstat(%q).Name(): got %q, want %q", tc.path, got.Name(), tc.want.name)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:52:11 UTC 2023
    - 29.1K bytes
    - Viewed (0)
  9. src/os/os_unix_test.go

    func checkUidGid(t *testing.T, path string, uid, gid int) {
    	dir, err := Lstat(path)
    	if err != nil {
    		t.Fatalf("Lstat %q (looking for uid/gid %d/%d): %s", path, uid, gid, err)
    	}
    	sys := dir.Sys().(*syscall.Stat_t)
    	if int(sys.Uid) != uid {
    		t.Errorf("Lstat %q: uid %d want %d", path, sys.Uid, uid)
    	}
    	if int(sys.Gid) != gid {
    		t.Errorf("Lstat %q: gid %d want %d", path, sys.Gid, gid)
    	}
    }
    
    func TestChown(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:32:43 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/sftp/SFTPServer.groovy

        void allowInit() {
            expectations << new SftpAllow(SftpConstants.SSH_FXP_INIT)
        }
    
        void expectLstat(String path) {
            expectations << new SftpExpectOnePath(SftpConstants.SSH_FXP_LSTAT, "LSTAT", path)
        }
    
        void expectMetadataRetrieve(String path) {
            expectLstat(path)
        }
    
        void expectOpen(String path) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 17.1K bytes
    - Viewed (0)
Back to top