MCPcopy Index your code
hub / github.com/rclone/rclone / ModTime

Method ModTime

backend/webdav/webdav.go:1430–1437  ·  view source on GitHub ↗

ModTime returns the modification time of the object It attempts to read the objects mtime and if that isn't present the LastModified returned in the http headers

(ctx context.Context)

Source from the content-addressed store, hash-verified

1428// It attempts to read the objects mtime and if that isn't present the
1429// LastModified returned in the http headers
1430func (o *Object) ModTime(ctx context.Context) time.Time {
1431 err := o.readMetaData(ctx)
1432 if err != nil {
1433 fs.Infof(o, "Failed to read metadata: %v", err)
1434 return time.Now()
1435 }
1436 return o.modTime
1437}
1438
1439// Set modified time using propset
1440//

Callers 2

copyOrMoveMethod · 0.95
SetModTimeMethod · 0.95

Calls 2

readMetaDataMethod · 0.95
InfofFunction · 0.92

Tested by

no test coverage detected