tocc icon indicating copy to clipboard operation
tocc copied to clipboard

toccfs have problem with *no tag*

Open aidin36 opened this issue 10 years ago • 3 comments

When calling tags statistics method in libtocc, it also returns a special tag: *no tag*. For the files which does not have any tags assigned to them.

toccfs calls this method to show tags as directories. It also tries to show *no tag*, which cause some errors like: cannot access /mnt/temp/*no tag*: No such file or directory.

The problem is with asterisks. toccfs should show another name instead of *no tag*. For example, _no tag_.

aidin36 avatar Dec 22 '14 16:12 aidin36

where exactly should i look to solve this issue ?

anukin avatar Dec 23 '14 02:12 anukin

Take a look at FSHandler::get_related_tags method, in toccfs directory. This is where it get tags from libtocc.

I assign the issue to you.

aidin36 avatar Dec 23 '14 05:12 aidin36

To reproduce the error, import a file with no tag. i.e., import a file with CLI without --assign: tocc -b /opt/tocc-managed/ -i /home/aidin/test-file

Now, mount toccfs: toccfs /opt/tocc-managed/ /mnt/tocc/

Then, get the list of files: ls /mnt/tocc/

You will see that it complains about the /mnt/tocc/*no tag* file.

aidin36 avatar Jan 03 '15 17:01 aidin36