keeps track of dirs with changed contents, to avoid setting modtimes on dirs that haven't changed
(dir string)
| 1079 | |
| 1080 | // keeps track of dirs with changed contents, to avoid setting modtimes on dirs that haven't changed |
| 1081 | func (s *syncCopyMove) markDirModified(dir string) { |
| 1082 | if !s.setDirModTimeAfter { |
| 1083 | return |
| 1084 | } |
| 1085 | s.setDirModTimeMu.Lock() |
| 1086 | defer s.setDirModTimeMu.Unlock() |
| 1087 | s.modifiedDirs[dir] = struct{}{} |
| 1088 | } |
| 1089 | |
| 1090 | // like markDirModified, but accepts an Object instead of a string. |
| 1091 | // the marked dir will be this object's parent. |
no test coverage detected