list

package
v0.0.0-...-d1c8724 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: GPL-3.0, LGPL-2.1 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DelListFlag bool
View Source
var ExcludeRex *regexp.Regexp
View Source
var FastDebugFlag bool

FastDebugFlag is used for debugging the concurrent routines.

View Source
var FilterFlag bool
View Source
var FilterStr string
View Source
var GlobFlag bool
View Source
var IncludeRex *regexp.Regexp
View Source
var InputDir string
View Source
var LastAltered = "Aug 20, 2025"
View Source
var ReverseFlag bool
View Source
var SizeFlag bool
View Source
var SymFlag bool // only copy symlinks.
View Source
var VerboseFlag bool
View Source
var VeryVerboseFlag bool

Functions

func CheckDest

func CheckDest() string

func ExpandADash

func ExpandADash(in string) (string, error)

ExpandADash -- expands the first instance of a dash that it finds

func ExpandAllDashes

func ExpandAllDashes(in string) (string, error)

ExpandAllDashes -- expands all instances of a dash that it finds by calling ExpandADash as often as it needs to.

func FileSelectionString

func FileSelectionString(inList []FileInfoExType) ([]string, error)

func GetMagnitudeString

func GetMagnitudeString(j int64) (string, ct.Color)

func ProcessDirectoryAliases

func ProcessDirectoryAliases(cmdline string) string

func ReplaceDigits

func ReplaceDigits(in string) string

ReplaceDigits -- replaces the digits 1..9 with the letters a..z. This is because I have a habit of hitting "1" for the first item I see, instead of "a".

Types

type DirAliasMapType

type DirAliasMapType map[string]string

func GetDirectoryAliases

func GetDirectoryAliases() DirAliasMapType

type FileInfoExType

type FileInfoExType struct {
	FI       os.FileInfo
	Dir      string
	RelPath  string // this is a misnomer, but to not have to propagate the correction thru my code, I'll leave this here.
	AbsPath  string
	FullPath string // probably not needed, but I really do want to be complete.
}

FileInfoExType is what is returned by all the routines here. Fields are file info, Dir, RelPath, AbsPath and FullPath. Some may be redundant, but this is what it is.

func FileInfoXFromGlob

func FileInfoXFromGlob(globStr string) ([]FileInfoExType, error)

FileInfoXFromGlob behaves the same on linux and Windows, so it's here and not in platform specific code file. Uses concurrent code to read the disk.

func FileInfoXFromRegexp

func FileInfoXFromRegexp(rex *regexp.Regexp) ([]FileInfoExType, error)

func FileSelection

func FileSelection(inList []FileInfoExType) ([]FileInfoExType, error)

FileSelection -- This displays the files on screen and creates the list from what's entered by the user.

func GetFileInfoXFromCommandLine

func GetFileInfoXFromCommandLine(excludeMe *regexp.Regexp) ([]FileInfoExType, error)

func MakeList

func MakeList(excludeRegex *regexp.Regexp, sizeSort, reverse bool) ([]FileInfoExType, error)

MakeList needs the excludeRegex, sizeSort and reverse params, and returns a slice of FileInfoExType and error. After writing this, I decided to use the idiomatic wrapper functions above.

func MyReadDir

func MyReadDir(dir string, excludeMe *regexp.Regexp) ([]FileInfoExType, error)

MyReadDir -- single routine version

func New

func New() ([]FileInfoExType, error)

New does not need params and returns a slice of FileInfoExType and an error. This is the idiomatic way to call the routine here.

func NewFromGlob

func NewFromGlob(globExpr string) ([]FileInfoExType, error)

NewFromGlob takes a glob expression and returns a slice of FileInfoExType, and an error.

func NewFromRegexp

func NewFromRegexp(rex *regexp.Regexp) ([]FileInfoExType, error)

NewFromRegexp takes a regexp and returns a slice of FileInfoExType and an error.

func NewList

func NewList(excludeMe *regexp.Regexp, sizeSort, reverse bool) ([]FileInfoExType, error)

NewList needs these params (excludeMe *regexp.Regexp, sizeSort, reverse bool) and returns a slice of FileInfoExType, and error.

func SkipFirstNewList

func SkipFirstNewList() ([]FileInfoExType, error)

SkipFirstNewList will return a slice of FileInfoExType and an error. I don't remember why I coded this.

Directories

Path Synopsis
cmd
adduplist command
cf command
cf2 command
cf3 command
copyc command
copyc1 command
copyc2 command
copycp command
copycv command
copylist command
dellist command
fewc command
fewlist command
hardlinklist command
heiclist command
movelist command
runlist command
runlst command
runrex command
runx command
symlinklist command

Jump to

Keyboard shortcuts

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