MCPcopy
hub / github.com/rclone/rclone / SetModTime

Method SetModTime

fs/dir_wrapper.go:81–91  ·  view source on GitHub ↗

SetModTime sets the metadata on the DirEntry to set the modification date If there is any other metadata it does not overwrite it.

(ctx context.Context, t time.Time)

Source from the content-addressed store, hash-verified

79//
80// If there is any other metadata it does not overwrite it.
81func (d *DirWrapper) SetModTime(ctx context.Context, t time.Time) error {
82 do, ok := d.Directory.(SetModTimer)
83 if !ok {
84 if d.failSilently {
85 Debugf(d, "Can't SetModTime for this directory (%T from %v) -- skipping", d.Directory, d.Fs())
86 return nil
87 }
88 return ErrorNotImplemented
89 }
90 return do.SetModTime(ctx, t)
91}
92
93// Check interfaces
94var (

Callers

nothing calls this directly

Calls 3

DebugfFunction · 0.85
FsMethod · 0.65
SetModTimeMethod · 0.65

Tested by

no test coverage detected