Detecting hard links with evaluator

it is possible to detect folder symlinks and junctions using
if (extdir == "<symlinkd>")
if (extdir == "<junction>")

It is possible to detect file sym-links with the evaluator using something like
if (Match(ext, "<.*>", "r"))
and it is possible to detect shortcuts using something like
if (ext == "lnk")
but I cannot find a way to detect hard-links, is this possible ?
if not put it on the feature request list please.

AFAIK hard links are not detectable as they are just like a regular file: a pointer to the real location of the data on the drive.

EDIT: https://superuser.com/questions/366739/how-can-i-find-hard-links-on-windows

Thanks. problematic then :frowning:

Guess which of the following is a junction or a symlink or a normal folder (cannot do hard links)

Link Shell Extension adds a shell column and icon overlay.

1 Like

looks interesting, many thanks.

Certainly shows that it is possible to detect hard links, and would prefer it if it was inbuilt into Directory Opus, so original Feature Request still stands please.

I guess then someone could create a script column that uses EverythingInterface to get the files from a filelist whose hardlink count is greater than 1. And then you could get that value via Evaluator.

I agree that it would be useful to have that column built-in. And be able to obtain that value and a list of target files related via scripting.

So maybe your feature request should be aimed at that?

We'll add a column for this in the next beta.

2 Likes