duc icon indicating copy to clipboard operation
duc copied to clipboard

ignore symlinks in indexing and CGI

Open robina80 opened this issue 1 year ago • 4 comments

hi all,

how do i ignore symlinks when im indexing my NAS as i dont want to include symlinks in my CGI

EDIT - so it shows the symlink only and doesnt drill down which is fine but as its a symlink how do i get DUC to not show the size of the symlink

thanks, rob

robina80 avatar Dec 09 '24 13:12 robina80

how do i ignore symlinks when im indexing my NAS as i dont want to include symlinks in my CGI

We currently do not have a way to exclude symlinks from the count, but that will only impact the size calculations very slightly.
If you have a file A which is 1g, and three symlinks, B C D, pointing to file A from other dirs, duc will not count the size four times.

Can you maybe explain your concern in more detail please?

John

l8gravely avatar Dec 09 '24 22:12 l8gravely

thanks @l8gravely for looking into this and sorry for the late reply

basically when i go to the full path in duc ie the mov file it says its 28G but this is symlink file so i dont want it to give the full size as its not the original file, its a shortcut pointing to the original file

but in windows and mac when i view the same file (ie the symlink file) in file explorer windows says its 0b where as mac says its 203b as i said as its not the original file, its just a shortcut to the original file

robina80 avatar Dec 15 '24 13:12 robina80

"robina80" == robina80 @.***> writes:

thanks @l8gravely for looking into this and sorry for the late reply

basically when i go to the full path in duc ie the mov file it says its 28G but this is symlink file so i dont want it to give the full size as its not the original file, its a shortcut pointing to the original file

Is the overall filesystem size wrong? Can you maybe just index that directory and share the DB with me so I can look it over?

but in windows and mac when i view the same file (ie the symlink file) in file explorer windows says its 0b where as mac says its 203b as i said as its not the original file, its just a shortcut to the original file

So you're sharing the filesystem with Samba? I forget the details, was this in a fileserver somewhere?

Some more details would be appreciated.

duc ls -d /path/to/duc.db -v --debug --ascii -a /path/to/directory

Should be close to what you need to run to get me more details. But really is the overall filesystem numbers correct?

John

l8gravely avatar Dec 17 '24 22:12 l8gravely

Is there any more information here?

l8gravely avatar Jun 03 '25 19:06 l8gravely