Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
Name string
RelativePath string // Path relative to the root of the mounted filesystem.
RealPathOfFile string // Path on the local filesystem.
LastEditTime uint64 // Use time.Now().UnixNano().
CreatedTime uint64
Atime uint64 // Announced access time, unix nanoseconds. 0 means unknown.
Size uint64
Mode uint32 // Announced mode bits. 0 means unknown; presenters fall back to 0644.
}
type SyncTracker ¶
type SyncTracker struct {
LocalFilesMu sync.RWMutex
LocalFiles map[string]*File
RemoteFilesMu sync.RWMutex
RemoteFiles map[string]*File
}
func NewSyncTracker ¶
func NewSyncTracker() *SyncTracker
func (*SyncTracker) PruneStaleLocalFiles ¶ added in v0.3.0
func (st *SyncTracker) PruneStaleLocalFiles()
PruneStaleLocalFiles removes entries whose underlying file no longer exists.
Click to show internal directories.
Click to hide internal directories.