- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 199 for LSTAT (0.14 sec)
-
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/removeall_noat.go
} // Simple case: if Remove works, we're done. err := Remove(path) if err == nil || IsNotExist(err) { return nil } // Otherwise, is this a directory we need to recurse into? dir, serr := Lstat(path) if serr != nil { if serr, ok := serr.(*PathError); ok && (IsNotExist(serr.Err) || serr.Err == syscall.ENOTDIR) { return nil } return serr } if !dir.IsDir() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 29 16:24:51 UTC 2022 - 3.1K 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) -
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) -
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) -
src/path/filepath/symlink.go
if len(dest) > filepathlite.VolumeNameLen(dest) && !os.IsPathSeparator(dest[len(dest)-1]) { dest += pathSeparator } dest += path[start:end] // Resolve symlink. fi, err := os.Lstat(dest) if err != nil { return "", err } if fi.Mode()&fs.ModeSymlink == 0 { if !fi.Mode().IsDir() && end < len(path) { return "", syscall.ENOTDIR } continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 23:07:50 UTC 2024 - 3.3K bytes - Viewed (0) -
pkg/volume/util/device_util_linux.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 16 11:12:06 UTC 2022 - 9.4K bytes - Viewed (0) -
src/os/types_windows.go
package os import ( "internal/filepathlite" "internal/godebug" "internal/syscall/windows" "sync" "syscall" "time" "unsafe" ) // A fileStat is the implementation of FileInfo returned by Stat and Lstat. type fileStat struct { name string // from ByHandleFileInformation, Win32FileAttributeData, Win32finddata, and GetFileInformationByHandleEx FileAttributes uint32 CreationTime syscall.Filetime
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:44:48 UTC 2024 - 11.7K bytes - Viewed (0)