Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Copier ¶
type Copier struct {
Config *config.Config
Photos []*Photo
Stats struct {
Count int
Skipped int
Size int64
}
StatsMutex sync.Mutex
Workers []*Worker
CopyQueue chan *Photo
Context context.Context
CancelFunc context.CancelFunc
Wg sync.WaitGroup
ProgressBar *progressbar.ProgressBar
}
func (*Copier) CreateDestDirs ¶
func (c *Copier) CreateDestDirs()
func (*Copier) IncrementSkipped ¶
func (c *Copier) IncrementSkipped()
func (*Copier) IncrementStats ¶
func (*Copier) InitProgressBar ¶
func (c *Copier) InitProgressBar()
type Photo ¶
type Photo struct {
Path string
FileName string
DateTaken time.Time
Copier *Copier
Atime time.Time
Ctime time.Time
Mtime time.Time
Md5 []byte
File *os.File
}
func (*Photo) GetDateTaken ¶
func (*Photo) GetTargetPath ¶
type Worker ¶
func (*Worker) CheckSameContents ¶
Click to show internal directories.
Click to hide internal directories.