darkfeline / dantalian

File tagging with hard links
http://darkfeline.github.io/dantalian
Apache License 2.0
78 stars 5 forks source link

Use absolute tag path in find #3

Closed khadiwala closed 10 years ago

khadiwala commented 10 years ago

The library find did not resolve full tag paths - now commands like

find --root /path/to/library tag1 tag2

outside of /path/to/library should work.

Thanks for the project, especially the documentation. Let me know if you'd like me to change any formatting if you'd like to incorporate this fix.

darkfeline commented 10 years ago

I'm developing on the develop branch, so this and future patches should fork from and merge into there as well.

This should be fixed in 0.5, which is coming soon. In short, tags will be absolute and of the form //tag/tree/path. These will refer unambiguously to tags in the given library. Otherwise, tags can be referred to implicitly by their filesystem path, whether relative or absolute, and dantalian will hard link accordingly (I don't think I will add a check that the given directory is actually in the given library since that involves backtracking up the directory tree.)