Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for GetFileType (0.15 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. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/os/stat_windows.go

    		defer syscall.CloseHandle(h)
    		return statHandle(name, h)
    	}
    	return fi, err
    }
    
    func statHandle(name string, h syscall.Handle) (FileInfo, error) {
    	ft, err := syscall.GetFileType(h)
    	if err != nil {
    		return nil, &PathError{Op: "GetFileType", Path: name, Err: err}
    	}
    	switch ft {
    	case syscall.FILE_TYPE_PIPE, syscall.FILE_TYPE_CHAR:
    		return &fileStat{name: filepathlite.Base(name), filetype: ft}, nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/changes/DefaultFileChange.java

            return new File(path);
        }
    
        @Override
        public ChangeType getChangeType() {
            return change.getPublicType();
        }
    
        @Override
        public org.gradle.api.file.FileType getFileType() {
            FileType typeToConvert = change == ChangeTypeInternal.REMOVED ? previousFileType : currentFileType;
            return toPublicFileType(typeToConvert);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 5.1K bytes
    - Viewed (0)
Back to top