You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
latest.log needs point to the latest log (20240222.log in this case).
I tried using sftpClient.SymbolicLink("20240222.log", "latest.log") but GetCanonicalPath changes the path, resulting in a link to /20240222.log (which is wrong because it points to the root directory). I tried changing the working directory to "exports" but that results in a link to /exports/20240222.log (which is also wrong because the file is in the same folder).
Is this feasible?
The text was updated successfully, but these errors were encountered:
I am using SSH.NET version 2024.0.0 (just upgraded).
I need to create a symlink to a file which is on the same folder with SftpClient.
The remote folder structure is pretty simple:
latest.log needs point to the latest log (20240222.log in this case).
I tried using
sftpClient.SymbolicLink("20240222.log", "latest.log")
but GetCanonicalPath changes the path, resulting in a link to/20240222.log
(which is wrong because it points to the root directory). I tried changing the working directory to "exports" but that results in a link to/exports/20240222.log
(which is also wrong because the file is in the same folder).Is this feasible?
The text was updated successfully, but these errors were encountered: