Use name of symlink not target when index folder

Hi,

I have indexed a folder of symlinks created by git-annex.

For example a symlink called test.txt:


$ ls -l test.txt 
lrwxr-xr-x  1 joe  staff  189  2 Jan 12:44 test.txt -> ../.git/annex/objects/fW/Gk/SHA256E-s0--e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.txt/SHA256E-s0--e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.txt

The name of the files in Devonthink is that of the target file: SHA256E-s0–e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.txt.

Is it possible to have the name be that of the symlink: test.txt?

Thanks, Joe.

Not sure what you have going on here since DEVONthink doesn’t support symlinks or aliases.

From File -> Index…, I have indexed a folder containing symlinks e.g. test.pdf.

The Name of the file in Devonthink is SHA256E…pdf instead of ideally test.pdf.

Ahh… What version of DEVONthink are you running? I am not seeing an issue here…

Over here on DEVONthink Pro Office 2.9.8, if I import or index a symlink, DEVONthink grabs the original file and not the symlink. Just checked and that’s the behavior I see – and DEVONthink shows the original name, not the symlink name.

Is it possible this is a git-annex issue – is the app using standard OS X symlinks. (I don’t know why it wouldn’t.)

Could you run a test and import or index a symlink for a test file that’s not involved in your git-annex set up – say a new text file you create on the desktop? Do you still get the same bad result?

@korm, yes that is the behaviour I see (with and without git-annex).

For example, I created a symlink called symlink.txt that points to a file named target.txt.

The name of the indexed file in DEVONthink Pro 2.9.8 is target.txt.

My problem is that git-annex creates a symlink with the name of the file, but the original file is renamed (SHA…) and moved. Thus the indexed file names in DEVONthink are not useful.

I guess this is too low level and would require a change to DEVONthink to accomodate for using the symlink name and not the destination node name. (Apple FileWrapper Class developer.apple.com/reference/f … ilewrapper).

Is there a method for feature requests?

@bluefrog the problem is that I would like to see test.log (not Console.log) in your example.