Documentation
¶
Index ¶
- Variables
- func CheckDest() string
- func ExpandADash(in string) (string, error)
- func ExpandAllDashes(in string) (string, error)
- func FileSelectionString(inList []FileInfoExType) ([]string, error)
- func GetMagnitudeString(j int64) (string, ct.Color)
- func ProcessDirectoryAliases(cmdline string) string
- func ReplaceDigits(in string) string
- type DirAliasMapType
- type FileInfoExType
- func FileInfoXFromGlob(globStr string) ([]FileInfoExType, error)
- func FileInfoXFromRegexp(rex *regexp.Regexp) ([]FileInfoExType, error)
- func FileSelection(inList []FileInfoExType) ([]FileInfoExType, error)
- func GetFileInfoXFromCommandLine(excludeMe *regexp.Regexp) ([]FileInfoExType, error)
- func MakeList(excludeRegex *regexp.Regexp, sizeSort, reverse bool) ([]FileInfoExType, error)
- func MyReadDir(dir string, excludeMe *regexp.Regexp) ([]FileInfoExType, error)
- func New() ([]FileInfoExType, error)
- func NewFromGlob(globExpr string) ([]FileInfoExType, error)
- func NewFromRegexp(rex *regexp.Regexp) ([]FileInfoExType, error)
- func NewList(excludeMe *regexp.Regexp, sizeSort, reverse bool) ([]FileInfoExType, error)
- func SkipFirstNewList() ([]FileInfoExType, error)
Constants ¶
This section is empty.
Variables ¶
var DelListFlag bool
var ExcludeRex *regexp.Regexp
var FastDebugFlag bool
FastDebugFlag is used for debugging the concurrent routines.
var FilterFlag bool
var FilterStr string
var GlobFlag bool
var IncludeRex *regexp.Regexp
var InputDir string
var LastAltered = "Aug 20, 2025"
var ReverseFlag bool
var SizeFlag bool
var SymFlag bool // only copy symlinks.
var VerboseFlag bool
var VeryVerboseFlag bool
Functions ¶
func ExpandADash ¶
ExpandADash -- expands the first instance of a dash that it finds
func ExpandAllDashes ¶
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 ProcessDirectoryAliases ¶
func ReplaceDigits ¶
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 ¶
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
|