Page 1 of 1

Color Filters: Showing Symbolic Links

Posted: 15 Sep 2021 15:23
by Jerry
[Using 22.20.0200]

How do I configure a color filter for symbolic links, but NOT mount points? The filter I have set up for mount points is also rendering for symbolic links which I want to see differently.

Re: Color Filters: Showing Symbolic Links

Posted: 15 Sep 2021 15:42
by highend
Maybe prop:#LinkTarget:*:*>000000,00EE00?

Re: Color Filters: Showing Symbolic Links

Posted: 15 Sep 2021 16:33
by Jerry
highend wrote: 15 Sep 2021 15:42 Maybe prop:#LinkTarget:*:*>000000,00EE00?
No effect.

Re: Color Filters: Showing Symbolic Links

Posted: 15 Sep 2021 16:55
by highend
Works fine here for symlinks on local drives

Re: Color Filters: Showing Symbolic Links

Posted: 17 Sep 2021 15:13
by JLoftus
attr:junction ?

Re: Color Filters: Showing Symbolic Links

Posted: 17 Sep 2021 15:20
by highend
That doesn't target normal symbolic links

Re: Color Filters: Showing Symbolic Links

Posted: 17 Sep 2021 17:28
by Jerry
Still can't get this to work, even when it's the very first filter in the list. I created the symbolic link with mklink /D and the target resides on on a different drive/partition.
Is there some spacing required?

Code: Select all

prop:#LinkTarget:*:*>000000,00EE00

Re: Color Filters: Showing Symbolic Links

Posted: 17 Sep 2021 18:12
by highend
mklink /d is different from creating a normal symlink^^

A drive mounted to a folder has e.g.:

Code: Select all

#JunctionTarget = Volume{1f5e6bcf-1494-11ec-9aff-b42e993d4559}\
And a mklink /d has just the full path for that key:

Code: Select all

#JunctionTarget = E:\videos
In other words you can only check for those if they are local (no UNC paths involved) via

Code: Select all

prop:#JunctionTarget:*:*>000000,00EE00
and regarding your other thread: viewtopic.php?f=3&t=23237&p=189070#p189070

you have to move the entry from here above the entry from the other thread or think about a different solution for the other one...

Re: Color Filters: Showing Symbolic Links

Posted: 17 Sep 2021 19:10
by Jerry
highend wrote: 17 Sep 2021 18:12 mklink /d is different from creating a normal symlink^^
Not sure what you mean by "normal symlink". I am using mklink to create a BSD Unix-style symbolic link, as opposed to an old Unix-style hard link. (The latter requires the /H option.) I'm doing this in Windows of course, not Unix, and not in any Unix shell. Just the basic Command Prompt. I am also making a symbolic link to a directory, not to a file, using the /D option. I am NOT mounting an external drive under a folder (which I use Disk Administrator to do.); that was the subject of my other thread.

The directory is C:\Users\Jerry\AppData\Local\Google which I have relocated to another partition on the same physical drive. The original mklink command (with command prompt) was:

Code: Select all

C:\Users\Jerry\AppData\Local> mklink /D Google P:\AppData\Local\Google
I'm not sure if a Windows symbolic directory link (SYMLINKD) is technically a junction or not. In any case, running DIR /A in a Command Prompt shows the following for the link I created:

Code: Select all

09/15/2021  09:04 AM    <SYMLINKD>     Google [P:\AppData\Local\Google]
[ And Cygwin's ls command correctly reports that Google is a BDS Unix-style symbolic link to the folder of that name on the P: partition, on the same physical drive:

Code: Select all

lrwxrwxrwx 1 Administrators None 32 Sep 15 09:04 Google -> /cygdrive/p/AppData/Local/Google
]

Re: Color Filters: Showing Symbolic Links

Posted: 17 Sep 2021 19:34
by JLoftus
I'm doing the same as Jerry, to have a number of AppData folders actually located in RamDisk, so I use the same command as he did:
mklink /d "C:\Users\JLoftus\AppData\Local\Google\" "R:\JLoftus\Google"

When I use attr:junction in the Color Filters, these folders appear correctly filtered. I too have tried many variants of what Highend posted and I can't get any of those to work for these links as well.

Re: Color Filters: Showing Symbolic Links

Posted: 17 Sep 2021 20:06
by highend
Don't know what exactly the problem is...

f is an usb stick mounted to an empty folder
videos a mklink /d link to another drive

If there is something missing:
Show a screenshot and how that link was created + filter definitions (only the relevant ones)...
1.png
1.png (11.75 KiB) Viewed 3091 times

Code: Select all

+prop:#JunctionTarget:*:*>000000,00EE00
+attr:junction AND prop:#HardLinks:>=1>FFFFFF,FB4F04

Re: Color Filters: Showing Symbolic Links

Posted: 17 Sep 2021 20:47
by JLoftus
weird, I pasted your first line "prop:#JunctionTarget:*:*" directly over mine, which appeared to be the exact same text, and now it works. It also appears (at least for my system) to behave exactly the same as attr:junction ¯\_(ツ)_/¯

Re: Color Filters: Showing Symbolic Links

Posted: 18 Sep 2021 14:02
by Jerry
Here's what I am seeing (not seeing) using xyplorer /fresh:
Snap181.jpg
Snap181.jpg (91.75 KiB) Viewed 3047 times
Snap180.jpg
Snap180.jpg (120.03 KiB) Viewed 3047 times

Re: Color Filters: Showing Symbolic Links

Posted: 18 Sep 2021 14:23
by highend
The + in front is only there when you manage them via the pencil button, not when entered in the gui where you have the checkbox...

Re: Color Filters: Showing Symbolic Links

Posted: 18 Sep 2021 14:34
by Jerry
highend wrote: 18 Sep 2021 14:23 The + in front is only there when you manage them via the pencil button, not when entered in the gui where you have the checkbox...
Ok, that was it. I removed the leading plus sign, and now it works. Thanks.