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)
| 79 | // |
| 80 | // If there is any other metadata it does not overwrite it. |
| 81 | func (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 |
| 94 | var ( |
nothing calls this directly
no test coverage detected