Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 78 for LSTAT (0.13 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. platforms/software/resources-sftp/src/integTest/groovy/org/gradle/integtests/resolve/resource/sftp/SftpClientReuseIntegrationTest.groovy

                    @TaskAction
                    void sftpTest() {
                        def client = sftpClientFactory.createSftpClient(new URI("${sftpServer.uri}"), credentials)
                        client.sftpClient.lstat("/")
                        sftpClientFactory.releaseSftpClient(client)
                    }
                }
            """
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. platforms/software/resources-sftp/src/main/java/org/gradle/internal/resource/transport/sftp/SftpResourceAccessor.java

            LockableSftpClient sftpClient = sftpClientFactory.createSftpClient(location.getUri(), credentials);
            try {
                SftpATTRS attributes = sftpClient.getSftpClient().lstat(location.getPath());
                return attributes != null ? toMetaData(location.getUri(), attributes) : null;
            } catch (com.jcraft.jsch.SftpException e) {
                if (e.id == ChannelSftp.SSH_FX_NO_SUCH_FILE) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  4. src/os/stat_plan9.go

    func statNolog(name string) (FileInfo, error) {
    	d, err := dirstat(name)
    	if err != nil {
    		return nil, err
    	}
    	return fileInfoFromStat(d), nil
    }
    
    // lstatNolog implements Lstat for Plan 9.
    func lstatNolog(name string) (FileInfo, error) {
    	return statNolog(name)
    }
    
    // For testing.
    func atime(fi FileInfo) time.Time {
    	return time.Unix(int64(fi.Sys().(*syscall.Dir).Atime), 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 08 03:57:40 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  5. pkg/volume/volume_linux.go

    //   - callback walkFunc is invoked on root directory after visiting children dirs and files
    func walkDeep(root string, walkFunc filepath.WalkFunc) error {
    	info, err := os.Lstat(root)
    	if err != nil {
    		return walkFunc(root, nil, err)
    	}
    	return walk(root, info, walkFunc)
    }
    
    func walk(path string, info os.FileInfo, walkFunc filepath.WalkFunc) error {
    	if !info.IsDir() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 03 19:34:37 UTC 2023
    - 6.5K 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/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)
  9. pkg/volume/util/fs/fs_windows.go

    }
    
    // DiskUsage gets disk usage of specified path.
    func DiskUsage(path string) (UsageInfo, error) {
    	var usage UsageInfo
    	info, err := os.Lstat(path)
    	if err != nil {
    		return usage, err
    	}
    
    	usage.Bytes, err = diskUsage(path, info)
    	return usage, err
    }
    
    func diskUsage(currPath string, info os.FileInfo) (int64, error) {
    	var size int64
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 21 16:25:48 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  10. src/os/removeall_noat.go

    	}
    
    	// Simple case: if Remove works, we're done.
    	err := Remove(path)
    	if err == nil || IsNotExist(err) {
    		return nil
    	}
    
    	// Otherwise, is this a directory we need to recurse into?
    	dir, serr := Lstat(path)
    	if serr != nil {
    		if serr, ok := serr.(*PathError); ok && (IsNotExist(serr.Err) || serr.Err == syscall.ENOTDIR) {
    			return nil
    		}
    		return serr
    	}
    	if !dir.IsDir() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 3.1K bytes
    - Viewed (0)
Back to top