problem following links

Get help for specific problems
Posts: 5
Joined: 23 Apr 2021

brimley

I would like to be able to sync the following structure:

X:\somedir\latest\mods

where latest is a symbolic link to the latest version.

X:\somedir\v1
X:\somedir\v2
X:\somedir\v3
X:\somedir\latest (is a symbolic link to V3)

However, I'm struggling to select this since I browse the directories to sync and clicking on latest
replaces it with V3 - but I want it to follow V3 in real time.

I note the follow/direct options but they won't seem to help when actually selecting the top level.

Any thoughts appreciated.

Thanks
Steve
User avatar
Posts: 2947
Joined: 22 Aug 2012

Plerry

I am not sure if you can select a symlink as your left or right base location (try simply typing instead of dragging/clicking).
If that does not work, try defining X:\somedir as your base location and change your Include Filter from * into \latest\*
Posts: 5
Joined: 23 Apr 2021

brimley

Plerry,

Many thanks for the reply, much appreciated.

If I type the source (X:\somedir\latest) then it gives me a warning about the directory being created if needed - On a source!, wow.

If I set the source as X:\somedir and the filter as \latest\mods\* or latest\mods\* then it finds nothing
even though I added a new file as a test in the mods dir (in the latest physical dir obviously).
In this case the latest physical dir is actually the only one, but that won't always be true.

It's probably something you need to set up a test case for to see what's happening...?

Steve
User avatar
Posts: 4867
Joined: 11 Jun 2019

xCSxXenon

Are you sure it is a symbolic link and not something else? How did you create it?
User avatar
Site Admin
Posts: 7506
Joined: 9 Dec 2007

Zenju

Would love to support that. And in fact this is exactly how drag and drop works in FFS:
1. Shell links (.lnk) ARE followed
2. File system symbolic links are NOT followed

But the Windows folder picker has it's own idiosyncrasies...

There's FOS_NODEREFERENCELINKS, so maybe FFS can disable the annoying auto-follow for symbolic links and implement a better handling?

NOPE.

This flag inflicts too much collateral damage: Following .lnk files now fails with "folder name is invalid" popup *while* the picker is still shown, and before FFS can do anything about it.
Posts: 5
Joined: 23 Apr 2021

brimley

RE: Are you sure it is a symbolic link and not something else? How did you create it?

Oh now this is embarrassing... it's a shortcut. .. sorry....hangs head in shame...

It's actually created by a game (BeamNG.drive) and I'm just trying to back up my Son's mods.

C:\Users\myuser\AppData\Local\BeamNG.drive\latest

That said, the issues remain the same.

Steve
Posts: 5
Joined: 23 Apr 2021

brimley

Anyone?

Is this how you'd expect a shortcut to behave?

I'd just like the backup to be redirected by it...

???

Thanks
Steve
User avatar
Posts: 4867
Joined: 11 Jun 2019

xCSxXenon

I would not expect a shortcut to behave how you want, it's just a shortcut, a file that says "go here".
You need a proper symlink. It's really weird that the game makes a shortcut, as it's useless for it
Posts: 5
Joined: 23 Apr 2021

brimley

Ok, fair enough.
Thanks for the reply anyway, ,much appreciated.
:-)
Steve