Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toccfs have problem with *no tag* #112

Open
aidin36 opened this issue Dec 22, 2014 · 3 comments
Open

toccfs have problem with *no tag* #112

aidin36 opened this issue Dec 22, 2014 · 3 comments

Comments

@aidin36
Copy link
Owner

aidin36 commented Dec 22, 2014

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_.

@anukin
Copy link

anukin commented Dec 23, 2014

where exactly should i look to solve this issue ?

@aidin36
Copy link
Owner Author

aidin36 commented Dec 23, 2014

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
Copy link
Owner Author

aidin36 commented Jan 3, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants