You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instrumented path based operations using hooks defined in Checker (#325)
Instrumented path based operations using hooks defined in `Checker`.
```scala
trait Checker {
def onRead(path: ReadablePath): Unit
def onWrite(path: Path): Unit
}
```
### Exceptions
The following operations were not instrumented:
- `followLink`, `readLink`
- `list`, `walk`
- `exists`, `isLink`, `isFile`, `isDir`
- read operations for permissions/stats
- `watch`
### Future work
- A more comprehensive design would add hooks for each core operation.
This would eliminate the special check handling in operations like
`move` and `symlink`.
- As such, the methods of `ReadablePath` represent escape hatches. These
cannot be "plugged" without breaking binary compatibility.
This resolves part 1 of [mill
#3746](com-lihaoyi/mill#3746).
0 commit comments