Relative To Tags Database - Not displaying tags
Posted: 01 Dec 2018 03:16
Most Tags and labels are not being displayed. But curiously, some are.
Forgive me if I did something wrong but because I'm new to this specific feature. Recently I decided to switch to "Configuration/Tags/Storage/Relative to tags database." I was using "Absolute paths" for many years without any problems.
- I copied my TAG.dat file from xyplorer\data to E:\subdirectory1\RelativeTAGS.dat.
I created an admin.ini file with [Path] and the appropriate key FileTagDat=e:\subdirectory1\RelativeTAGS.dat under it.
I started up xyplorer, and also monitored the relativeTAGS.dat file in a text editor for changes.
It didn't affect the file at all until I changed a tag, after which it updated the whole database and changed all the tags on the E:\ drive to relative paths which is what I expected.
Note:: also, because I used a subdirectory to store my tagsdatabase, there are many relative tags that start with something like ..\folder.
- After doing all this everything was fine and worked until restarting xyplorer.
- After restarting, MOST of the tags and labels are not displayed properly. But some are.
- At this time I guessed that maybe the files aren't sorted properly or something got messed up and so I did database check on fixed drives, and it removed several orphaned files which I knew I had.
- Then the tags displayed properly. label colors, comment fields, custom fields, all showed up.
- But upon restarting, they were gone again. And doing database check with no orphans fixes it again.
Comments::
- I have about 2000 tags.
- The tags at the very beginning worked. (Maybe just a coincidence)
- Random tags after that worked but not many.
- I noticed that Tag.dat is usually sorted, which it is after changing to "relative to database" except...
- what used to be the E:\xxx set of tags are not consistent with a sort. This might be by design but I'm suspicious because my tags list looks something like this::
c:\files
c:\subdirectory\files
d:\files
d:\subdirectory\files
..\files
..\photos\files.jpg
file1.xls #these files are actually in e:\subdirectory1 which is correct
file2.png
file3.jpg
..\Excel\doc1.xls
..\videos\movie.mkv
f:\files
g:\files
h:\files
etc...
I always believed that your tag.dat file relied heavily on things being sorted properly so I suspect this could cause things to fail. My tags for the e: drive after changing to relative were left in place. Again, I don't know if this is by design or not but I suspect something might be wrong here. All the drive letters tags are sorted properly and the whole file would be sorted properly if the ones that turned into relative tags were reverted to the e:\xxx absolute path.
So after, thinking it through, I guess one of my main questions is, where do relative path entries go in relation to absolute path entries?
Well, that may or may not be the problem causing the tags not to display, it's just a hunch.
Forgive me if I did something wrong but because I'm new to this specific feature. Recently I decided to switch to "Configuration/Tags/Storage/Relative to tags database." I was using "Absolute paths" for many years without any problems.
- I copied my TAG.dat file from xyplorer\data to E:\subdirectory1\RelativeTAGS.dat.
I created an admin.ini file with [Path] and the appropriate key FileTagDat=e:\subdirectory1\RelativeTAGS.dat under it.
I started up xyplorer, and also monitored the relativeTAGS.dat file in a text editor for changes.
It didn't affect the file at all until I changed a tag, after which it updated the whole database and changed all the tags on the E:\ drive to relative paths which is what I expected.
Note:: also, because I used a subdirectory to store my tagsdatabase, there are many relative tags that start with something like ..\folder.
- After doing all this everything was fine and worked until restarting xyplorer.
- After restarting, MOST of the tags and labels are not displayed properly. But some are.
- At this time I guessed that maybe the files aren't sorted properly or something got messed up and so I did database check on fixed drives, and it removed several orphaned files which I knew I had.
- Then the tags displayed properly. label colors, comment fields, custom fields, all showed up.
- But upon restarting, they were gone again. And doing database check with no orphans fixes it again.
Comments::
- I have about 2000 tags.
- The tags at the very beginning worked. (Maybe just a coincidence)
- Random tags after that worked but not many.
- I noticed that Tag.dat is usually sorted, which it is after changing to "relative to database" except...
- what used to be the E:\xxx set of tags are not consistent with a sort. This might be by design but I'm suspicious because my tags list looks something like this::
c:\files
c:\subdirectory\files
d:\files
d:\subdirectory\files
..\files
..\photos\files.jpg
file1.xls #these files are actually in e:\subdirectory1 which is correct
file2.png
file3.jpg
..\Excel\doc1.xls
..\videos\movie.mkv
f:\files
g:\files
h:\files
etc...
I always believed that your tag.dat file relied heavily on things being sorted properly so I suspect this could cause things to fail. My tags for the e: drive after changing to relative were left in place. Again, I don't know if this is by design or not but I suspect something might be wrong here. All the drive letters tags are sorted properly and the whole file would be sorted properly if the ones that turned into relative tags were reverted to the e:\xxx absolute path.
So after, thinking it through, I guess one of my main questions is, where do relative path entries go in relation to absolute path entries?
Well, that may or may not be the problem causing the tags not to display, it's just a hunch.