forum/Stale keys and .cache files left in .git/annex/objectsgit-annexhttp://git-annex.branchable.com/forum/Stale_keys_and_.cache_files_left_in_.git__47__annex__47__objects/git-annexikiwiki2014-10-02T16:23:35Zcomment 1http://git-annex.branchable.com/forum/Stale_keys_and_.cache_files_left_in_.git__47__annex__47__objects/comment_1_2aa80b317863a99e676a375d907d0e84/joeyh.name2014-10-02T16:23:35Z2014-10-02T16:23:35Z
<p>I cannot see a way that eg, <code>dropunused</code> could leave empty object directories. The few functions that remove content from a repository call <code>cleanObjectLoc</code> to prune the empty directories that result. Of course, the empty directories can be safely removed.</p>
<p>IIRC older versions of direct mode might have made stale .cache and .map before. They can be deleted if you're not using direct mode.</p>
<p>The only way I can see that a dash could come before the 'm' and the mtime is if the mtime were negative. I don't know how that would happen, but the code has certainly never put a dash there, and
WORM-s123-m-123456789--name is not a valid git-annex key; git-annex cannot parse it.</p>