Internal symlink/shorcut support

There isn’t too much too it and it’s not 1:1 with the issues related to symlinks that have already been described here.

There’s a folder structure: /rootfolder/year/month

At every start of a new month, a new subdir is created, so in case of August, we have a tree:

/rootfolder/2024/01
/rootfolder/2024/02

/rootfolder/2024/08

A solution that I had in place, created 2 symlinks just after the latest folder was created.

Let’s call them “thismonth” and “previousmonth”

In case of August, “thismonth” would point to /rootfolder/2024/08
and “previousmonth” to /rootfolder/2024/07

Symlinks were present in the /rootfolder/.links/

Windows clients that have used the share had those 2 shortcuts/links pinned so that they didn’t need to browse anything, just clicked those and saw proper folder contents.

Now Nextcloud doesn’t really handle that situation well. Symlinks aren’t synced and while I could do hardlink/bind, it’s hardly an elegant solution, as for NC it’s basically another folder to sync, so you just store the same data twice and waste disk space on the client.

What I would need is a way to pass/sync a simple relative symlink, as I don’t need to traverse to any other path, upwards in the tree or anything like that - just down.

If it cannot be done “nicely”, I’m fine with using hacks (so feel free to propose any), but it’d make my life way easier if there’s some switch/option that can be turned on to allow for symlink/shortcut handling that’s transparent to NC and doesn’t cause any sync issues.

The missing support of symbolic links has already been addressed here. You should consider to upvote the issue ticket to raise the awareness:

I can not really help. But in Nextcloud is an app Link editor. This allows you to set up links within Nextcloud structures. Maybe it helps a little. I don’t like the name of the app at all and the changes .URL and .webloc are rather annoying.

@j-ed
I guess that’d be the only proper way to handle those things.

@devnull
While nice, that doesn’t really suit my purpose :frowning:

However(!) I found a tool that can help me get around the problem for the time being, at least when it comes to Windows-based clients.
Name’s “Relative” (I found it here: www.csparks.com/Relative/index.html )
It can create “shortcuts” out of relative paths, what explorer cannot do, so they kinda act like symlinks. Not exactly, but close enough for my (and maybe some others’) purposes. Maybe someone will find what I’ve found helpful, at least until some way of handling symlinks will be implemented :slight_smile: