move

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(file1, file2 string) bool

func Hash

func Hash(path string) uint64

func Move

func Move(path, dir string) error

Move 移动文件.

Types

type Service

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

Service 文件移动服务.

func NewService

func NewService(
	cfg *pb.Config,
	metaService *meta.Service,
) *Service

NewService 新建文件移动服务.

func (*Service) Move

func (p *Service) Move(num int, paths []string)

Move 根据分组配置移动文件.

func (*Service) Scan

func (p *Service) Scan()

Scan 扫描分组目录.

func (*Service) Watch

func (p *Service) Watch()

Watch 监听分组目录.

Jump to

Keyboard shortcuts

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