- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 181 for LSTAT (0.05 sec)
-
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) -
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) -
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) -
src/os/file_unix.go
) const _UTIME_OMIT = unix.UTIME_OMIT // fixLongPath is a noop on non-Windows platforms. func fixLongPath(path string) string { return path } func rename(oldname, newname string) error { fi, err := Lstat(newname) if err == nil && fi.IsDir() { // There are two independent errors this function can return: // one for a bad oldname, and one for a bad newname. // At this point we've determined the newname is bad.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 13:52:34 UTC 2024 - 14.9K bytes - Viewed (0) -
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) -
pkg/volume/fc/fc_util.go
byID = "/dev/disk/by-id/" ) 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) } func (handler *osIOHandler) WriteFile(filename string, data []byte, perm os.FileMode) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 16 11:12:06 UTC 2022 - 12.8K bytes - Viewed (0) -
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) -
src/os/os_windows_test.go
continue } if !os.SameFile(fi, fi1) { t.Errorf("%q should point to %q", link, dir) continue } fi2, err := os.Lstat(link) if err != nil { t.Errorf("failed to lstat link %v: %v", link, err) continue } var wantType fs.FileMode if test.isMountPoint && winsymlink.Value() != "0" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 41.8K bytes - Viewed (0) -
src/os/types.go
// File represents an open file descriptor. // // The methods of File are safe for concurrent use. type File struct { *file // os specific } // A FileInfo describes a file and is returned by [Stat] and [Lstat]. type FileInfo = fs.FileInfo // A FileMode represents a file's mode and permission bits. // The bits have the same definition on all systems, so that // information about files can be moved from one system
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 20:52:06 UTC 2024 - 2.9K bytes - Viewed (0) -
cmd/os_other.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "io" "os" "syscall" ) func access(name string) error { _, err := os.Lstat(name) return err } func osMkdirAll(dirPath string, perm os.FileMode, _ string) error { // baseDir is not honored in plan9 and solaris platforms. return os.MkdirAll(dirPath, perm) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Sep 13 15:14:36 UTC 2023 - 4K bytes - Viewed (0)