Documentation ¶
Overview ¶
Package scan does concurrent scanning of an Fs building up a directory tree.
Index ¶
- func Scan(ctx context.Context, f fs.Fs) (chan *Dir, chan error, chan struct{})
- type Dir
- func (d *Dir) Attr() (size int64, count int64)
- func (d *Dir) AttrI(i int) (size int64, count int64, isDir bool, readable bool)
- func (d *Dir) Entries() fs.DirEntries
- func (d *Dir) GetDir(i int) (subDir *Dir, isDir bool)
- func (d *Dir) Parent() *Dir
- func (d *Dir) Path() string
- func (d *Dir) Remove(i int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dir ¶
type Dir struct {
// contains filtered or unexported fields
}
Dir represents a directory found in the remote
func (*Dir) Entries ¶
func (d *Dir) Entries() fs.DirEntries
Entries returns a copy of the entries in the directory
func (*Dir) GetDir ¶
GetDir returns the Dir of the i-th entry
returns nil if it is a file returns a flag as to whether is directory or not
Click to show internal directories.
Click to hide internal directories.