Documentation ¶
Index ¶
- Constants
- func Link(oldname, newname string) error
- func SameAttrs(fi1, fi2 FileInfoEx) bool
- func SameFile(fi1, fi2 FileInfoEx) bool
- func Sum(name string) (hash string, err error)
- type DB
- func (db *DB) Begin() error
- func (db *DB) Close() error
- func (db *DB) Commit() error
- func (db *DB) Done(path string) error
- func (db *DB) NextFiles(ctx context.Context, mtime bool, order Order) ([]*File, error)
- func (db *DB) NextSymlinks(ctx context.Context, mtime bool, order Order) ([]*Symlink, error)
- func (db *DB) NumFiles() (int64, int64, error)
- func (db *DB) NumSymlinks() (int64, int64, error)
- func (db *DB) Rollback() error
- func (db *DB) SetCacheSize(size int64) error
- func (db *DB) Update(fi FileInfoEx) error
- type Deduper
- type File
- type FileInfoEx
- type Finder
- type Order
- type Symlink
- type When
Constants ¶
View Source
const Version = "0.0+"
Variables ¶
This section is empty.
Functions ¶
func SameAttrs ¶
func SameAttrs(fi1, fi2 FileInfoEx) bool
func SameFile ¶
func SameFile(fi1, fi2 FileInfoEx) bool
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) NextSymlinks ¶
func (*DB) SetCacheSize ¶
func (*DB) Update ¶
func (db *DB) Update(fi FileInfoEx) error
type Deduper ¶
type Deduper struct { Attrs bool Mtime When Name bool Pretend bool Progress bool // contains filtered or unexported fields }
func NewDeduper ¶
type FileInfoEx ¶
type FileInfoEx interface { fs.FileInfo Path() string Dev() (uint64, error) Nlink() (uint64, error) }
func Lstat ¶
func Lstat(name string) (FileInfoEx, error)
func Stat ¶
func Stat(name string) (FileInfoEx, error)
Click to show internal directories.
Click to hide internal directories.