Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for GetFileType (0.19 sec)

  1. pkg/volume/util/hostutil/hostutil.go

    	// MakeRShared checks that given path is on a mount with 'rshared' mount
    	// propagation. If not, it bind-mounts the path as rshared.
    	MakeRShared(path string) error
    	// GetFileType checks for file/directory/socket/block/character devices.
    	GetFileType(pathname string) (FileType, error)
    	// PathExists tests if the given path already exists
    	// Error is returned on any other error than "file not found".
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 13:38:40 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. pkg/volume/util/hostutil/hostutil_unsupported.go

    }
    
    // MakeRShared always returns an error on unsupported platforms
    func (hu *HostUtil) MakeRShared(path string) error {
    	return errUnsupported
    }
    
    // GetFileType always returns an error on unsupported platforms
    func (hu *HostUtil) GetFileType(pathname string) (FileType, error) {
    	return FileType("fake"), errUnsupported
    }
    
    // MakeFile always returns an error on unsupported platforms
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 10:17:38 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  3. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/changes/FilePathWithType.java

            this.absolutePath = absolutePath;
            this.fileType = fileType;
        }
    
        public String getAbsolutePath() {
            return absolutePath;
        }
    
        public FileType getFileType() {
            return fileType;
        }
    
        @Override
        public String toString() {
            return String.format("%s (%s)", fileType, absolutePath);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. pkg/volume/util/hostutil/hostutil_linux.go

    func (hu *HostUtil) MakeRShared(path string) error {
    	return DoMakeRShared(path, procMountInfoPath)
    }
    
    // GetFileType checks for file/directory/socket/block/character devices.
    func (hu *HostUtil) GetFileType(pathname string) (FileType, error) {
    	return getFileType(pathname)
    }
    
    // PathExists tests if the given path already exists
    // Error is returned on any other error than "file not found".
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 23 08:36:44 UTC 2023
    - 10K bytes
    - Viewed (0)
  5. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/changes/NormalizedPathChangeDetector.java

            FileType previousFingerprintType,
            String normalizedPath,
            FilePathWithType modifiedFile
        ) {
            String absolutePath = modifiedFile.getAbsolutePath();
            FileType fileType = modifiedFile.getFileType();
            return DefaultFileChange.modified(absolutePath, propertyTitle, previousFingerprintType, fileType, normalizedPath);
        }
    
        private static Change removed(
            String propertyTitle,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  6. pkg/volume/util/hostutil/hostutil_windows.go

    		errno, ok := fserr.Err.(syscall.Errno)
    		return ok && errno == windows.ERROR_CANT_ACCESS_FILE
    	}
    
    	return false
    }
    
    // GetFileType checks for sockets/block/character devices
    func (hu *(HostUtil)) GetFileType(pathname string) (FileType, error) {
    	filetype, err := getFileType(pathname)
    
    	// os.Stat will return a 1920 error (windows.ERROR_CANT_ACCESS_FILE) if we use it on a Unix Socket
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 13:38:40 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. pkg/volume/hostpath/host_path.go

    		return false
    	}
    	pathType, err := ftc.hu.GetFileType(ftc.path)
    	if err != nil {
    		return false
    	}
    	return string(pathType) == string(v1.HostPathFile)
    }
    
    func (ftc *fileTypeChecker) MakeFile() error {
    	return makeFile(ftc.path)
    }
    
    func (ftc *fileTypeChecker) IsDir() bool {
    	if !ftc.Exists() {
    		return false
    	}
    	pathType, err := ftc.hu.GetFileType(ftc.path)
    	if err != nil {
    		return false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  8. src/internal/poll/sendfile_windows.go

    	defer func() {
    		TestHookDidSendFile(fd, 0, written, err, written > 0)
    	}()
    	if fd.kind == kindPipe {
    		// TransmitFile does not work with pipes
    		return 0, syscall.ESPIPE
    	}
    	if ft, _ := syscall.GetFileType(src); ft == syscall.FILE_TYPE_PIPE {
    		return 0, syscall.ESPIPE
    	}
    
    	if err := fd.writeLock(); err != nil {
    		return 0, err
    	}
    	defer fd.writeUnlock()
    
    	o := &fd.wop
    	o.handle = src
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. pkg/volume/util/hostutil/fake_hostutil.go

    // No-op for testing
    func (hu *FakeHostUtil) MakeRShared(path string) error {
    	return nil
    }
    
    // GetFileType checks for file/directory/socket/block/character devices.
    // Defaults to Directory if otherwise unspecified.
    func (hu *FakeHostUtil) GetFileType(pathname string) (FileType, error) {
    	if t, ok := hu.Filesystem[pathname]; ok {
    		return t, nil
    	}
    	return FileType("Directory"), nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 13:32:38 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  10. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/changes/IgnoredPathCompareStrategy.java

                FilePathWithType removedFile = unaccountedForPreviousEntry.getValue();
                DefaultFileChange removed = DefaultFileChange.removed(removedFile.getAbsolutePath(), propertyTitle, removedFile.getFileType(), IgnoredPathFingerprintingStrategy.IGNORED_PATH);
                if (!visitor.visitChange(removed)) {
                    return false;
                }
            }
            return true;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top