Check validates all the recorded file times
()
| 89 | |
| 90 | // Check validates all the recorded file times |
| 91 | func (times *FileTimes) Check() (err error) { |
| 92 | if len(*times.list) == 0 { |
| 93 | return checkFailed{"Times list is empty"} |
| 94 | } |
| 95 | for idx := range *times.list { |
| 96 | err = (*times.list)[idx].Check() |
| 97 | if err != nil { |
| 98 | return |
| 99 | } |
| 100 | } |
| 101 | return |
| 102 | } |
| 103 | |
| 104 | // CheckOne compares notes between the given path and the recorded times |
| 105 | func (times *FileTimes) CheckOne(path string) (err error) { |