dir

package
v0.0.0-...-1d6347e Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finder

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

Finder saves the necessary information and the found file when searching for a file containing Korean.

func NewFinder

func NewFinder(path, fileExt string, skipPaths *regexp.Regexp) (*Finder, error)

NewFinder returns a new Finder object. Check the "path" is correct before returning.

func (*Finder) Chunk

func (f *Finder) Chunk() [][]string

Chunk returns the slice value obtained by dividing the result value found with Find by the number of files that can be read by the operating system at once.

func (*Finder) Find

func (f *Finder) Find() error

Find finds and saves the same file with the specified file extension in the specified path and all sub paths.

func (*Finder) ResultCount

func (f *Finder) ResultCount() int

ResultCount returns the number of results found with Find. If Find is not called, it returns 0.

Jump to

Keyboard shortcuts

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