jdberry / tag

A command line tool to manipulate tags on Mac OS X files, and to query for files with those tags.
MIT License
1.45k stars 93 forks source link

How tag works and do I need to clean cache somehow when I remove tagged files? #42

Closed sgon00 closed 6 years ago

sgon00 commented 6 years ago

First, thanks a lot for the amazing tool. I just install it today. I read a closed issue which mentions the tag uses extended attribute in HFS and APFS file systems. I don't really know what it means. Where does the tag info store? Does it store in the same file which I tag? For example, if I tag a file tag -a tag1 file1, and then later rm file1, do the tag1 tag name and the reference/link btw tag name and file both removed from the file system? Do I need to do anything to clean the cache (or the extended attributes)? Thanks a lot.

sgon00 commented 6 years ago

I found out the metadata is stored in the file. Thus no cache needs to be cleaned in this way. Closing the issue question.