walker

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package walker implements the traversal of directories and the processing of the files therein.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Walker

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

Walker traverses directory trees and processes the files it finds.

func New

func New() (*Walker, error)

New creates a new Walker instance that uses the blacklist from the database.

func NewWithBlacklist

func NewWithBlacklist(bl *blacklist.Blacklist) (*Walker, error)

NewWithBlacklist creates a new Walker instance that uses the given Blacklist.

func (*Walker) IsActive

func (w *Walker) IsActive() bool

IsActive returns the Walker's Active flag

func (*Walker) ScheduleScan

func (w *Walker) ScheduleScan(r *model.Root)

ScheduleScan adds the given Root to the Scan queue.

func (*Walker) Stop

func (w *Walker) Stop()

Stop clears the Walker's Active flag

func (*Walker) Walk

func (w *Walker) Walk(r *model.Root) error

Walk initiates a traversal of the given Directory tree

Jump to

Keyboard shortcuts

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