_roundModTime rounds the time passed in to the Precision of the underlying Fs It should be called with the lock held
(modTime time.Time)
| 367 | // |
| 368 | // It should be called with the lock held |
| 369 | func (f *File) _roundModTime(modTime time.Time) time.Time { |
| 370 | precision := f.d.f.Precision() |
| 371 | if precision == fs.ModTimeNotSupported { |
| 372 | return modTime |
| 373 | } |
| 374 | return modTime.Truncate(precision) |
| 375 | } |
| 376 | |
| 377 | // ModTime returns the modified time of the file |
| 378 | // |