Skip to content

cannot Open Files via Symbolic Link Path (Windows) #13

@Benson1997

Description

@Benson1997

Hello,
thank you for this project.

I’m encountering an issue when trying to open files located under a symbolic link on Windows, and I’d like to ask whether this scenario is supported.

As shown in the screenshot below:

The folder on the right (Z:\obsidian) is a symbolic link pointing to the folder on the left (H:\Sync\obsidian).

Files accessed directly from the original folder (H:\Sync\obsidian) can be opened successfully using ObsidianShell.CLI.exe.

However, attempting to open the same files via the symbolic link path (Z:\obsidian) results in an error (as shown in the screenshot).

I was wondering whether it is possible to support opening files through symbolic link paths, or if there is a recommended workaround for this situation.

Thank you very much for your time and help.


感谢大佬提供的好插件!有一个小小的遗憾,请帮忙看看能否解决:

下面截图中,右边的文件夹(Z:\obsidian\)是左边文件夹(H:\Sync\obsidian)的软链接,,左边的文件可以用 ObsidianShell.CLI.exe 打开,右边的就不能,报错如下图,请问这种软连接(符号链接)的文件夹下的文件,有办法支持打开吗?

非常感谢!

Image Image

ObsidianShell.CLI

System.NotSupportedException: The format of the given path is not supported.

In System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)

In System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)

In System.IO.Directory.InternalMove(String sourceDirName, String destDirName, Boolean checkHost)

In ObsidianShell.Obsidian.CreateLinkInRecent(DirectoryInfo directory, Boolean explicitDirectory)

In ObsidianShell.Obsidian.d__10.MoveNext()

--- End of stack trace from the previous location where the exception was thrown ---

In System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

In System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

In ObsidianShell.Obsidian.d__2.MoveNext()

--- End of stack trace at the previous location where the exception was thrown ---

In System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

In System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

In ObsidianShell.CLI.Program.

d__1.MoveNext()

--- End of stack trace from previous location where the exception was thrown ---

In System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

In System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

In ObsidianShell.CLI.Program.(String[] args)

confirm

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions