- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 97 for nlstat (0.15 sec)
-
src/os/stat.go
package os import "internal/testlog" // Stat returns a [FileInfo] describing the named file. // If there is an error, it will be of type [*PathError]. func Stat(name string) (FileInfo, error) { testlog.Stat(name) return statNolog(name) } // Lstat returns a [FileInfo] describing the named file. // If the file is a symbolic link, the returned FileInfo // describes the symbolic link. Lstat makes no attempt to follow the link.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 973 bytes - Viewed (0) -
src/os/export_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package os // Export for testing. var Atime = atime var LstatP = &lstat var ErrWriteAtInAppendMode = errWriteAtInAppendMode var TestingForceReadDirLstat = &testingForceReadDirLstat var ErrPatternHasSeparator = errPatternHasSeparator func init() { checkWrapErr = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 27 06:21:27 UTC 2023 - 433 bytes - Viewed (0) -
src/io/fs/stat.go
package fs // A StatFS is a file system with a Stat method. type StatFS interface { FS // Stat returns a FileInfo describing the file. // If there is an error, it should be of type *PathError. Stat(name string) (FileInfo, error) } // Stat returns a [FileInfo] describing the named file from the file system. // // If fs implements [StatFS], Stat calls fs.Stat. // Otherwise, Stat opens the [File] to stat it.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 11 20:25:50 UTC 2023 - 803 bytes - Viewed (0) -
platforms/core-runtime/files/src/main/java/org/gradle/internal/file/Stat.java
* limitations under the License. */ package org.gradle.internal.file; import java.io.File; public interface Stat { int getUnixMode(File f) throws FileException; FileMetadata stat(File f) throws FileException;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:55:52 UTC 2023 - 803 bytes - Viewed (0) -
src/os/stat_test.go
} // testStatAndLstat verifies that all os.Stat, os.Lstat os.File.Stat and os.Readdir work. func testStatAndLstat(t *testing.T, path string, params testStatAndLstatParams) { // test os.Stat sfi, err := os.Stat(path) if err != nil { t.Error(err) return } params.statCheck(t, path, sfi) // test os.Lstat lsfi, err := os.Lstat(path) if err != nil { t.Error(err) return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 22:38:03 UTC 2024 - 7.8K bytes - Viewed (0) -
pkg/volume/util/io_util.go
return os.ReadFile(filename) } func (handler *osIOHandler) ReadDir(dirname string) ([]os.FileInfo, error) { return ioutil.ReadDir(dirname) } func (handler *osIOHandler) Lstat(name string) (os.FileInfo, error) { return os.Lstat(name) } func (handler *osIOHandler) EvalSymlinks(path string) (string, error) { return filepath.EvalSymlinks(path)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 20 14:49:03 UTC 2023 - 1.4K bytes - Viewed (0) -
pkg/volume/util/fs/fs_windows_test.go
tmpfile1.Sync() tmpfile2.Sync() dirInfo1, err := os.Lstat(dir1) if err != nil { t.Fatalf("TestDiskUsage failed: %s", err.Error()) } dirInfo2, err := os.Lstat(dir2) if err != nil { t.Fatalf("TestDiskUsage failed: %s", err.Error()) } file1 := tmpfile1.Name() file2 := tmpfile2.Name() fileInfo1, err := os.Lstat(file1) if err != nil { t.Fatalf("TestDiskUsage failed: %s", err.Error()) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 20 14:49:03 UTC 2023 - 4.1K bytes - Viewed (0) -
pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher_windows.go
"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. // Once the issue is resvolved, the following os.Lstat() is not needed. if err != nil { fi, err = os.Lstat(event.Name) } return fi, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 01 00:26:37 UTC 2023 - 1.1K bytes - Viewed (0) -
src/os/stat_unix.go
err := ignoringEINTR(func() error { return syscall.Stat(name, &fs.sys) }) if err != nil { return nil, &PathError{Op: "stat", Path: name, Err: err} } fillFileStatFromSys(&fs, name) return &fs, nil } // lstatNolog lstats a file with no test logging. func lstatNolog(name string) (FileInfo, error) { var fs fileStat err := ignoringEINTR(func() error { return syscall.Lstat(name, &fs.sys) }) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 22:38:03 UTC 2024 - 1.2K bytes - Viewed (0) -
cmd/os-instrumented.go
defer updateOSMetrics(osMetricOpenFileDirectIO, name)(err) return disk.OpenFileDirectIO(name, flag, perm) } // Lstat captures time taken to call os.Lstat func Lstat(name string) (info os.FileInfo, err error) { defer updateOSMetrics(osMetricLstat, name)(err) return os.Lstat(name) } // Remove captures time taken to call os.Remove func Remove(deletePath string) (err error) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Feb 15 01:09:38 UTC 2024 - 6.3K bytes - Viewed (0)