tree

package
v0.0.0-...-23e2505 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package tree implements scanning directory trees for video files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

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

Scanner wraps all the handling of scanning Folders.

func NewScanner

func NewScanner(fileQ chan<- *objects.File) (*Scanner, error)

NewScanner creates a new Scanner that will handle the given list of paths. cnt is the number of goroutines to allocate for walking the directory trees in parallel.

func (*Scanner) Active

func (s *Scanner) Active() bool

Active returns true if the Scanner is currently scanning any Folders.

func (*Scanner) ScanPath

func (s *Scanner) ScanPath(paths ...string)

ScanPath tells the Scanner to inspect the given directories. The scanning itself happens in separate goroutines (one per directory).

Jump to

Keyboard shortcuts

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