diriterate

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2026 License: Apache-2.0, BSD-3-Clause, MIT Imports: 4 Imported by: 0

Documentation

Overview

Package diriterate provides a utility for iterating over the contents of a directory without loading all of it into memory at once.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirIterator

type DirIterator struct {
	// contains filtered or unexported fields
}

DirIterator iterates over the contents of a directory without loading all of it into memory at once.

func ReadDir

func ReadDir(fsys scalibrfs.FS, name string) (*DirIterator, error)

ReadDir reads the named directory and returns an iterator over the directory entries.

func (*DirIterator) Close

func (i *DirIterator) Close() error

Close closes the directory file.

func (*DirIterator) Next

func (i *DirIterator) Next() (fs.DirEntry, error)

Next returns the next fs.DirEntry from the directory. If error is nil, there will be a fs.DirEntry returned.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL