This is an Operating system limitation - when a path is over a certain length, which is supposed to be 260, but I believe it to be 254 from my own tests, it will use \?\ in front of the path name to allow it to exceed the character limit, but this does not appear to be compatible with os.Symlink because while it does create a symlink in the downloads folder, it does not actually link anywhere.
Neither mklink or PowerShell can create a working symlink with a path that exceeds the limit.
If there's no way to get around this limitation with the symbolic link creation itself, could you perhaps do a workaround and have the program just use an incrementing number for the folder names in the webdav mount like you do with the .nzbs folder, instead of duplicating the name of the file?
This is an Operating system limitation - when a path is over a certain length, which is supposed to be 260, but I believe it to be 254 from my own tests, it will use \?\ in front of the path name to allow it to exceed the character limit, but this does not appear to be compatible with os.Symlink because while it does create a symlink in the downloads folder, it does not actually link anywhere.
Neither mklink or PowerShell can create a working symlink with a path that exceeds the limit.
If there's no way to get around this limitation with the symbolic link creation itself, could you perhaps do a workaround and have the program just use an incrementing number for the folder names in the webdav mount like you do with the .nzbs folder, instead of duplicating the name of the file?