5 ms·
How is this different than something like this: mkdir -p ~/tags/{music,big-jazz,mp3} ln -s /path/to/summer.mp3 ~/tags/music/ ln -s /path/to/summer.
by Skunkleton 10y ago
How is this different than something like this:
mkdir -p ~/tags/{music,big-jazz,mp3}
ln -s /path/to/summer.mp3 ~/tags/music/
ln -s /path/to/summer.mp3 ~/tags/big-jazz/
ln -s /path/to/summer.mp3 ~/tags/mp3/
From there, you can use all normal filesystem tools to interact with your 'tags'. You could extend this with a simple script that handles duplicate file names in the same tag by sticking a hash of the file before the extension. Having a separate database for this information seems unnecessary.
- joshstrange 10y ago* 4 commands vs 1 * Doesn't account for files with the same name * No helper methods like merge when you typo Just a couple of reasons off the top of my head
- Udik 10y agoIt's still hierarchical. Try to tag a file both as jazz and as party music with folders. You can't. Edit: Misread. Yes it would work. Well, consider this a tool for doing it automatically, without filling your hd with bogus folders and links
- noonespecial 10y agoThis supplies you with only one relation between the tags: "And Then". Ex. 'Path' (and then) 'to' (and then) 'summer.mp3'. Or 'tags' (and then) 'big-jazz'. What you want is to also have AND, OR and NOT available. How would you find 'music' (and) 'mp3' (and not) 'big-jazz'?
- dsp1234 10y agoI'm not saying this would be simple, or as nice as the tool given, but it's not impossible. First, do a 'ls' directory dump of the 3 folders. Then 'cut' out the softlink destination from each file. This will end up with 3 files with soft links. From there, 'grep' the music and mp3 files together to get a list of soft links that are in both music and mp3. Then you can do an inverse 'grep' to remove softlinks that are in big jazz. Even if the system creates hard links instead of softlinks, then the same could be done via inode numbers
- jfb 10y agoThink of the poor inodes!