Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 85 for DirEntry (0.15 sec)

  1. src/go/build/build.go

    }
    
    // readDir calls ctxt.ReadDir (if not nil) or else os.ReadDir.
    func (ctxt *Context) readDir(path string) ([]fs.DirEntry, error) {
    	// TODO: add a fs.DirEntry version of Context.ReadDir
    	if f := ctxt.ReadDir; f != nil {
    		fis, err := f(path)
    		if err != nil {
    			return nil, err
    		}
    		des := make([]fs.DirEntry, len(fis))
    		for i, fi := range fis {
    			des[i] = fs.FileInfoToDirEntry(fi)
    		}
    		return des, nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  2. pkg/volume/util/subpath/subpath_linux.go

    		// See https://github.com/kubernetes/kubernetes/pull/71804 and https://github.com/kubernetes/kubernetes/issues/107667 for more details.
    		err = filepath.WalkDir(fullContainerDirPath, func(path string, info os.DirEntry, _ error) error {
    			if path == fullContainerDirPath {
    				// Skip top level directory
    				return nil
    			}
    
    			// pass through errors and let doCleanSubPath handle them
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 12 14:09:11 UTC 2022
    - 21.4K bytes
    - Viewed (0)
  3. src/archive/tar/writer.go

    // adding each file to the tar archive while maintaining the directory structure.
    func (tw *Writer) AddFS(fsys fs.FS) error {
    	return fs.WalkDir(fsys, ".", func(name string, d fs.DirEntry, err error) error {
    		if err != nil {
    			return err
    		}
    		if d.IsDir() {
    			return nil
    		}
    		info, err := d.Info()
    		if err != nil {
    			return err
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/util/users/users_linux.go

    // It is equivalent to calling `chown -R uid:gid /path/to/dir`.
    func UpdatePathOwner(dirPath string, uid, gid int64) error {
    	err := filepath.WalkDir(dirPath, func(path string, d os.DirEntry, err error) error {
    		if err := os.Chown(path, int(uid), int(gid)); err != nil {
    			return errors.Wrapf(err, "failed to update owner of %q to uid: %d and gid: %d", path, uid, gid)
    		}
    		return nil
    	})
    	return err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 25 16:35:10 UTC 2023
    - 20.7K bytes
    - Viewed (0)
  5. api/go1.21.txt

    pkg go/types, method (*Package) GoVersion() string #61175
    pkg html/template, const ErrJSTemplate = 12 #59584
    pkg html/template, const ErrJSTemplate ErrorCode #59584
    pkg io/fs, func FormatDirEntry(DirEntry) string #54451
    pkg io/fs, func FormatFileInfo(FileInfo) string #54451
    pkg log/slog, const KindAny = 0 #56345
    pkg log/slog, const KindAny Kind #56345
    pkg log/slog, const KindBool = 1 #56345
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 09:39:17 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  6. src/cmd/go/go_test.go

    	}
    
    	if !*testWork {
    		// There shouldn't be anything left in topTmpdir.
    		var extraFiles, extraDirs []string
    		err := filepath.WalkDir(topTmpdir, func(path string, d fs.DirEntry, err error) error {
    			if err != nil {
    				return err
    			}
    			if path == topTmpdir {
    				return nil
    			}
    
    			if rel, err := filepath.Rel(topTmpdir, path); err == nil {
    				path = rel
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  7. src/cmd/go/internal/script/cmds.go

    // needed in order to remove their contents.
    func removeAll(dir string) error {
    	// module cache has 0444 directories;
    	// make them writable in order to remove content.
    	filepath.WalkDir(dir, func(path string, info fs.DirEntry, err error) error {
    		// chmod not only directories, but also things that we couldn't even stat
    		// due to permission errors: they may also be unreadable directories.
    		if err != nil || info.IsDir() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  8. src/cmd/internal/testdir/testdir_test.go

    }
    
    func (t test) goDirName() string {
    	return filepath.Join(t.dir, strings.Replace(t.goFile, ".go", ".dir", -1))
    }
    
    // goDirFiles returns .go files in dir.
    func goDirFiles(dir string) (filter []fs.DirEntry, _ error) {
    	files, err := os.ReadDir(dir)
    	if err != nil {
    		return nil, err
    	}
    	for _, goFile := range files {
    		if filepath.Ext(goFile.Name()) == ".go" {
    			filter = append(filter, goFile)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  9. src/os/file.go

    	}
    	return b, nil
    }
    
    // ReadDir reads the named directory, returning all its directory entries sorted
    // by filename. Through this method, dirFS implements [io/fs.ReadDirFS].
    func (dir dirFS) ReadDir(name string) ([]DirEntry, error) {
    	fullname, err := dir.join(name)
    	if err != nil {
    		return nil, &PathError{Op: "readdir", Path: name, Err: err}
    	}
    	entries, err := ReadDir(fullname)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:37 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  10. api/go1.16.txt

    pkg io/fs, method (FileMode) String() string
    pkg io/fs, method (FileMode) Type() FileMode
    pkg io/fs, type DirEntry interface { Info, IsDir, Name, Type }
    pkg io/fs, type DirEntry interface, Info() (FileInfo, error)
    pkg io/fs, type DirEntry interface, IsDir() bool
    pkg io/fs, type DirEntry interface, Name() string
    pkg io/fs, type DirEntry interface, Type() FileMode
    pkg io/fs, type FS interface { Open }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 02 16:30:41 UTC 2022
    - 479.2K bytes
    - Viewed (0)
Back to top