Files only present in remotes show up as broken symlinks. That's great for knowing what files exist, but sometimes I just want to browse the files that are actually present. In this case, the many broken symlinks are just clutter. Is there a straightforward way to switch to a view that shows only locally present files?
I would like to see only locally present files too, for some of my use case (e.g.: movies exported via NFS to a XBMS/Kodi media player)
I'm using git annex (debian) version 5.20141024~bpo70+1
direct mode
as far as I understand, in direct mode broken symlinks (or text files placeholders for filesystems not supporting symlinks) are there by design, in particular in partial content use case where "there needs to be a way for the user to browse files not on the gadget and request they be transferred to it"
if there are no other reasons to have broken symlinks (or placeholders) I think git-annex should avoid them (at least in direct mode): if a user needs a file not listed by regular filesystem tools she can simply
git-annex find
it andgit-annex get
it: or do I miss something here?please consider avoiding broken symlinks or placeholders
indirect mode
in indirect mode we could live with broken symlinks using views; I tried
git annex view /=* --include="*" --in=here
but the resulting tree was not filtered by matching-optionsare matching-options intended to work with the view command or not?
How to hide broken symlinks
using views (but see comments)
Good news everyone!
git annex adjust --hide-missing
sets up a branch where only files with content available are included. And once in such a branch,git annex sync
updates it as necessary to reflect changes in content availability.