pub fn settle_files(
directory: &StoreDir,
lock: &StoreLock,
) -> Result<(), FileError>Expand description
Remove what unfinished writes left at the top of the store lock holds
for writing (Appendix C.3), and the joining keys a published store still
holds when the join that published it stopped before deleting them
(§13.4), then give every folder and file the class its
layout gives the store’s files, as directory names it, unless the
store’s record shows they were last given it (E1). Blocks while it walks
the store.