Welcome Guest

Pages: 1
Symbolic Links: Relative option not working
PowderPostJune 19, 2013, 09:30
Pro
Posts: 116
Registered:
March 4, 2013, 18:53
Normal topicSymbolic Links: Relative option not working

After having created lots of symlinks, I realized, that the relative options is not working as I expected. 🙁
The symlink being created is always absolute.

I just made another test to verify this, here are the settings I used:
Image

After running the action the symlink was created here (what is correct):
/Users/me/Test/Test/link to some album folder
but it points to:
/Users/me/Music/new/some album folder
Instead it should be:
../../Music/new/link to some album folder

To see the difference between an absolute and a relative symlink I ran ls -la in terminal.

PowderPostJune 19, 2013, 09:41
Pro
Posts: 116
Registered:
March 4, 2013, 18:53
Normal topicRe: Symbolic Links: Relative option not working

To stay flexible to move the music to another drive / rename the drive, I need relative links.

I should have tested this before…

2MR2PostJune 19, 2013, 13:50
Avatar photo
Administrator
Posts: 2083
Registered:
August 23, 2012, 19:27
Normal topicRe: Symbolic Links: Relative option not working

Yes. I am currently always creating 'absolute' symbolic links. The relative/absolute option is how you choose the destination path. This was done so that a single action could support more than one folder.

I will rename this function 'Create Absolute Symbolic Link' and I'll add a 'Create Relative Symbolic Link. I'll try to squeeze it into v2.3 which will be released in 2-3 weeks.

2MR2PostJune 19, 2013, 19:45
Avatar photo
Administrator
Posts: 2083
Registered:
August 23, 2012, 19:27
Normal topicRe: Symbolic Links: Relative option not working

The changes have been implemented in v2.3. I've created four functions which will hopefully avoid confusion:

Create Absolute Symbolic Link to File
Create Absolute Symbolic Link to Folder
Create Relative Symbolic Link to File
Create Relative Symbolic Link to Folder

The preview functionality will display the contents of the link as well as the path.

The existing Create Symbolic Links functions will automatically be converted to one of the first two forms.

Pages: 1
Mingle Forum by Cartpauj | Version: 1.1.0beta | Page loaded in: 0.036 seconds.