Update the object when written and add it to the directory
(o fs.Object)
| 542 | |
| 543 | // Update the object when written and add it to the directory |
| 544 | func (f *File) setObject(o fs.Object) { |
| 545 | f.mu.Lock() |
| 546 | f.o = o |
| 547 | f._setIsLink() |
| 548 | _ = f._applyPendingModTime() |
| 549 | d := f.d |
| 550 | f.mu.Unlock() |
| 551 | |
| 552 | // Release File.mu before calling Dir method |
| 553 | d.addObject(f) |
| 554 | } |
| 555 | |
| 556 | // Update the object but don't update the directory cache - for use by |
| 557 | // the directory cache |
no test coverage detected