scan

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package scan walks a source directory and lists the image files moraine can sort, excluding the destination root so already-sorted photos are never re-ingested (I1 / FR-021).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Found

type Found struct {
	Path   string
	Format photo.Format
}

Found is a recognised image file discovered by the scan.

func Scan

func Scan(source, destRoot string) ([]Found, error)

Scan recursively walks source and returns the recognised image files (JPEG/PNG/HEIC, case-insensitive). The destRoot directory — even when nested under source (e.g. "_sorted") — is skipped entirely.

Jump to

Keyboard shortcuts

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