findFiles

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: MIT Imports: 9 Imported by: 0

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