- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 223 for getStat (0.12 sec)
-
pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher_others_test.go
import ( "os" "testing" "github.com/fsnotify/fsnotify" "github.com/stretchr/testify/assert" ) func TestGetStat(t *testing.T) { event := fsnotify.Event{Name: "name", Op: fsnotify.Create} fi, err := getStat(event) fiExpected, errExpected := os.Stat(event.Name) assert.Equal(t, fi, fiExpected) assert.Equal(t, err, errExpected) } func TestGetSocketPath(t *testing.T) { socketPath := "/tmp/foo/lish.sock"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 01 00:26:37 UTC 2023 - 1.1K bytes - Viewed (0) -
pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher_others.go
See the License for the specific language governing permissions and limitations under the License. */ package pluginwatcher import ( "os" "github.com/fsnotify/fsnotify" ) func getStat(event fsnotify.Event) (os.FileInfo, error) { return os.Stat(event.Name) } func getSocketPath(socketPath string) string { return socketPath
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 01 00:26:37 UTC 2023 - 842 bytes - Viewed (0) -
pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher_windows.go
limitations under the License. */ package pluginwatcher import ( "github.com/fsnotify/fsnotify" "k8s.io/kubernetes/pkg/kubelet/util" "os" ) func getStat(event fsnotify.Event) (os.FileInfo, error) { fi, err := os.Stat(event.Name) // TODO: This is a workaround for Windows 20H2 issue for os.Stat(). Please see // microsoft/Windows-Containers#97 for details.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 01 00:26:37 UTC 2023 - 1.1K bytes - Viewed (0) -
pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher_windows_test.go
import ( "os" "testing" "github.com/fsnotify/fsnotify" "github.com/stretchr/testify/assert" ) func TestGetStatWindows(t *testing.T) { event := fsnotify.Event{Name: "name", Op: fsnotify.Create} fi, err := getStat(event) fiExpected, errExpected := os.Stat(event.Name) // TODO: This is a workaround for Windows 20H2 issue for os.Stat(). Please see // microsoft/Windows-Containers#97 for details.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 01 00:26:37 UTC 2023 - 1.2K bytes - Viewed (0) -
pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher.go
// Files names: // - MUST NOT start with a '.' func (w *Watcher) handleCreateEvent(event fsnotify.Event) error { klog.V(6).InfoS("Handling create event", "event", event) fi, err := getStat(event) if err != nil { return fmt.Errorf("stat file %s failed: %v", event.Name, err) } if strings.HasPrefix(fi.Name(), ".") { klog.V(5).InfoS("Ignoring file (starts with '.')", "path", fi.Name())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 01 00:26:37 UTC 2023 - 6.1K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/execution/plan/edges/NodeDependencySetTest.groovy
set.addDependency(dep2) then: set.getState(node) == Node.DependenciesState.NOT_COMPLETE when: set.onNodeComplete(node, dep1) then: set.getState(node) == Node.DependenciesState.NOT_COMPLETE when: set.onNodeComplete(node, dep2) then: set.getState(node) == Node.DependenciesState.COMPLETE_AND_SUCCESSFUL }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 12 20:17:10 UTC 2022 - 2.7K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/normalization/internal/DefaultRuntimeClasspathNormalization.java
resourceFilterState = resourceFilter.getState(); manifestAttributesFilterState = manifestAttributesFilter.getState(); propertiesFileFiltersState = propertiesFileFilters.getState(); } boolean isTrivial() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Feb 01 07:34:45 UTC 2022 - 9.3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/registry/RuleBinder.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 06 21:54:37 UTC 2024 - 5.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/registry/BindingPredicate.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/rank/fusion/RankFusionProcessorTest.java
assertEquals(1, list.getCurrentStartRecordNumber()); assertEquals(0, list.getOffset()); assertEquals(10, list.getPageSize()); assertEquals(0, list.getStart()); assertEquals("0", list.get(0).get(ID_FIELD)); assertEquals("9", list.get(9).get(ID_FIELD)); } else { fail(); }
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 25.6K bytes - Viewed (0)