DirCacher describes an interface for doing the low level directory work This should be implemented by the backend and will be called by the dircache package when appropriate.
| 36 | // This should be implemented by the backend and will be called by the |
| 37 | // dircache package when appropriate. |
| 38 | type DirCacher interface { |
| 39 | FindLeaf(ctx context.Context, pathID, leaf string) (pathIDOut string, found bool, err error) |
| 40 | CreateDir(ctx context.Context, pathID, leaf string) (newID string, err error) |
| 41 | } |
| 42 | |
| 43 | // New makes a DirCache |
| 44 | // |
no outgoing calls
no test coverage detected
searching dependent graphs…