Set “New link format” in File preferences to “Relative path to file.”
Create a new link with a relative format (this has to be done manually, as the file doesn’t exist yet so Obsidian can’t guess your desired folder path. E.g., ../Calendar/20200803
Try to create a new note from the link
Cry
Expected result
Successful creation of the new file in the expected directory.
Actual result
An ENOENT error.
Environment
Operating system: macOS 10.15
Obsidian version: 0.8.1
Additional information
Oddly, new note creation in the desired folder works perfectly with Absolute paths (e.g., Calendar/20200803 instead of ../Calendar/20200803.
there is something about the relative path that smells trubble to me. These cases of referencing something that is up the hirararchy look ugly and I am sure they are difficult to maintain.
I have the latest version 0.10.1 and I am having the same issue. The tooltip says to Click to Create, but I get a ENOENT error. The odd thing is the error message displays the path and part of the path is missing. It shows “Path/VaultDirectory/Notes/_Index.md”. The actual path should be Path/VaultDirectory/ActiveProjects/TestProjectA/Notes/_Index.md. The file which contains the created Internal Link resides in the TestProjectA folder. My Link is defined as [[Notes/_Index|Index]]. I reviewed the settings and all looks good. What am I missing? Thanks.
vault
|- a
|- first.md
|- b
|- second.md
|- third.md
If I create a link in first.md for a file that does not yet exist, i.e. [[../b/fourth.md|Fourth]], and try to CTRL-click to create the file I’ll get an ENOENT error.
But, If I create the file first and then create / click on the link it opens the file just fine.
Same Issue is there with me too. I cannot create a backlink to a file I might want to place in a specific folder. Application is trying to navigate into that file when we click into that but due to the fact that there is no file its giving us an error. Kindly asking developers to fix this issue ASAP as I like everything cleanly under folders for clutter free interface.
Just starting out Obsidian if there are any tips I would be glad to hear them.
Thank you.
Create a note with this content (a markdown link to a file that doesn’t exist in the vault)
[Note](./Note.md)
When hovering over the Note link in preview mode, the message "./Note.md" is not created yed. Click to create. is displayed
Click the Note link in preview mode
Expected result
The “Note.md” file is created in the same folder and it is displayed in both panes.
Actual result
When I click the link, the message Folder already exists. is displayed and the file is not created.
Environment
Operating system: Windows 7
Obsidian version: 0.12.5
Additional information
I’m used to this notation because I open my vault with other applications supporting relative markdown links, as well as Obsidian does, but they cannot deal with WikiLinks.
When the md file already exists, the relative link works fine.
Creating the link without the ./ before the name of the md file is working too, as in:
I too am getting the super confusingFolder already exists error.
v0.13.14, on the mac desktop app.
If you can’t find a way to solve the issue, can you at least try to replace the error with something more meaningful? The error message provided is pretty much the exact opposite of the problem.
I am getting the same error when trying to click on a node that does not exist to create it. The folder does exist in which the note is intended to “live.”
I know how to work around this issue[1], but I came here to see if it was a known issue because I was just showing somebody Obsidian and they tried it, hit this weird error, and said “nah, not for me”.
I think this is probably a blocking error for at least some significant subset of new users, since for many people this is the main way of making a new note linked from the current document. Type “BlahBlahTitle”, then bracket it to make it a link, and enter “./BlahBlahTitle.md”.
This still doesn’t work in version 1.1.15 (Installer 0.15.8) and the nonsensical error message (“folder already exists”) doesn’t make a good impression. So for new users just testing it out, that might be where they close the app and delete it.
[1]: Workaround is crazier than it seems at first:
Right click the tab of the current file, and choose “Reveal file in navigation”
Find the parent folder and right click it, then choose “New note”
Enter “BlahBlahTitle.md” as the title
Go back to the original note
Find the new note in the navigation side bar and drag it into the current note
or you could just type [BlahBlahTitle](./BlahBlahTitle.md) instead, which might be better because, if you didn’t do that and just dragged it in:
note that the link is just BlahBlahTitle.md not ./BlahBlahTitle.md… which works for now, but if you happen to later create a file in the root called BlahBlahTitle.md then suddenly the link jumps to a different file
therefore, manually edit the link and add “./” to the beginning of it to prevent this
Whew, now that I typed all that out, it actually looks crazy. Seems like Obsidian really doesn’t work well with relative paths (which admittedly, only some people like, but still).
Hi, it is not only Links within the same Folder that Obsidian has Problems with.
I’m setting up a parallel File Hierarchy to keep (not yet instantiated, on demand/first click) private Notes separate from public Notes, but link them, so my Links go up the tree to the Vault Root and then down a parallel Path in the private Branch like so:
When it does not exist and I press Ctrl+Click, I get this Message Folder already exists and an empty Tab opens.
I’m sharing this Vault with others, so absolute Links are not possible.
I know that upward navigating Links can be a security issue, but you know the root of your vault and can prevent navigation above that.
And the fact that the navigation works as soon as the file exists, demonstrates that it can work.
This is easy to reproduce. If it is hard to fix, please try to provide a Workaround.
Same, opening isn’t the issue creating is and yes absolute links are in most cases better, but sometimes I need relative links for something, especially if it is some sort of dynamic content with something like templater and journal notes.
This issue is the same in Mac Obsidian. Version 1.4.16 (Installer 1.4.13).
[Bug]: Relative path to notes notes issue when clicking. “Folder already exists” error and no file created.
Overview
The default behaviour in Obsidian is when there is a link created either in Wikilink or Markdown mode, and the note is still not present, Obsidian will try and create a new note under that name. There is no need to worry about the spaces as spaces are allowed.
This behaviour works fine when there is a
File present in the relative path or
There is a file or not in the absolute path.
Issue
However, when there is no file in the relative path, I get an error “Folder already exists” and Obsidian fail to create the file in the specified location.
This issue happens for both the Wikilinks and Markdown links.
Expected behaviour
When there is no file in the relative path that is linked by either Wikilink or Markdown, Obsidian should create the blank file and let the user edit it as it does for the other times.
Hope this can be solved soon. Relative paths are quite important as the notes move between vaults for re-organisation purposes. Please team, fix this. Thank you.