MCPcopy
hub / github.com/rclone/rclone / Dir

Struct Dir

vfs/dir.go:26–45  ·  view source on GitHub ↗

Dir represents a directory entry

Source from the content-addressed store, hash-verified

24
25// Dir represents a directory entry
26type Dir struct {
27 vfs *VFS // read only
28 inode uint64 // read only: inode number
29 f fs.Fs // read only
30 cleanupTimer *time.Timer // read only: timer to call cacheCleanup
31
32 mu sync.RWMutex // protects the following
33 parent *Dir // parent, nil for root
34 path string
35 entry fs.Directory
36 read time.Time // time directory entry last read
37 items map[string]Node // directory entries - can be empty but not nil
38 virtual map[string]vState // virtual directory entries - may be nil
39 sys atomic.Value // user defined info to be attached here
40
41 modTimeMu sync.Mutex // protects the following
42 modTime time.Time
43
44 _virtuals atomic.Int32 // number of virtual directory entries in this directory and children
45}
46
47//go:generate stringer -type=vState
48

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected