findFiles

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 9 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Search struct {
	BrowsedFiles    int
	Ready           bool
	SearchTime      searchTime
	ShowDir         bool
	CaseSensitive   bool
	POSIXcharClass  bool
	POSIXstrictMode bool
	Regex           bool
	UseEscapeChar   bool
	Wildcard        bool
	WholeWord       bool
	Type            searchType
	// contains filtered or unexported fields
}

func SearchNew

func SearchNew() *Search

func (*Search) FindDepth

func (toFind *Search) FindDepth(root string, depth int, showDir, followSymlink bool) (files []StoreFiles, err error)

SIMLINK version *********** FindDepth: Search for file in dir and subdir depending on depth argument. depth = -1 means infinite. This function get parameter from a Search structure which contain all search options. Note: time comparisons are calculated only with UTC format by golang ...

func (*Search) SearchAdd

func (s *Search) SearchAdd(searchFor, wWord, logicalOp string)

SearchAdd: Adding entry to be searched. Format: "wordToFind", "w", "&" "w", "", means WholeWord or not. "&", "|", "!", means and, or, not

func (*Search) SearchCompile

func (s *Search) SearchCompile() (err error)

SearchCompile: create regex string and compile it..

type StoreFiles

type StoreFiles struct {
	FilePath string
	FileInfo os.FileInfo
}

Jump to

Keyboard shortcuts

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