Skip to content

Symlinks fail to create properly when target path is over 254 characters long (Windows) #587

@MD2K23

Description

@MD2K23

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions