ENOENT sentence as a link problem

What I’m trying to do

iv been trying to make this “inter-individual differences in the electrophysiological characteristics of spindles eg density, amplitude, duration are highly correlated with Reasoning abilities ie fluid intelligence problem solving skills, the ability to employ logic, identify complex patterns” a link to a file.when i try i get the ENOENT:no suce file or directory.

Things I have tried

  • tested even longer links of random text (those worked)

  • creating the file by hand.(filename changed back)

  • opening a new vault and testing it there without any plugins.(didn’t work)

  • Modifying the sentence from what I first tried (still didn’t work)

using Windows 11 Pro 64-bit (this also have been happening when iv been using Windows 10 Pro 64-bit)
Obsidian V1.4.12 (also happens on previous versions)
the vault was installed in the 3D objects folder and is still there

If you search the forum, it comes up quite a bit. Maybe something in there could help:

https://forum.obsidian.md/search?context=topic&context_id=67299&q=ENOENT

Checked and haven’t found anything

That didn’t work when I checked

I can’t really say I know the in and outs of Windows. Sorry.

Seems you’ve tried the troubleshooting steps, but how about trying a different location for your vault (I’d try on the C: drive) or a different Windows user account? That has helped some folks.

Tried it on a USB, that didn’t work.
Tried directly in C: drive,didn’t work.
Created a new vault for each try.

Did you try in a different Windows user account?

It’s a Windows limitation of the total file path + file name. It’s nothing to do with Obsidian.

You can test this by trying to create a text file anywhere with the name:

inter-individual differences in the electrophysiological characteristics of spindles eg density, amplitude, duration are highly correlated with Reasoning abilities ie fluid intelligence problem solving skills, the ability to employ logic, identify complex patterns.txt

It will be truncated at something like 250 characters, including the folder path.

For example, if I create it in “c:\temp”, I will get the filename:

inter-individual differences in the electrophysiological characteristics of spindles eg density, amplitude, duration are highly correlated with Reasoning abilities ie fluid intelligence problem solving skills, the ability to employ log.txt

truncating at employ log.

If I create in “C:\Users\alan\AppData\Roaming\obsidian\Obsidian Sandbox” I will get the filename:

inter-individual differences in the electrophysiological characteristics of spindles eg density, amplitude, duration are highly correlated with Reasoning abilities ie fluid intelligence.txt

truncating earlier since “c:\temp” is shorter.

And I have long paths enabled in the Windows registry, weird.

So do I, and it still happens. Maybe Win11 changed something.

This has happened on Windows 10 with long paths enabled.

Hi @orb,

This is a limit of the file systems windows uses (NTFS, exFAT, UDF, FAT32)

There is a limit of:

“32,760 Unicode characters with each path component no more than 255 characters” source

In that statement component refers individually to each and every;

  • folder name
  • separators (backslash \)
  • file name and extension including the period
  • drive letter including the colon and backslash \
  • and a NULL character at the end of it all

So the path itself can be more than 255 but the file name itself (or even a folder name) can only be 255.

Your original name even without an extension is 265 characters long.

inter-individual differences in the electrophysiological characteristics of spindles eg density, amplitude, duration are highly correlated with Reasoning abilities ie fluid intelligence problem solving skills, the ability to employ logic, identify complex patterns


Here are some more references/terms:

All file systems follow the same general naming conventions for an individual file: a base file name and an optional extension, separated by a period. source

Note that a directory is simply a file with a special attribute designating it as a directory, but otherwise must follow all the same naming rules as a regular file. source

The term path refers to one or more directories, backslashes, and possibly a volume name. source

The path to a specified file consists of one or more components, separated by a special character (a backslash), with each component usually being a directory name or file name. source

In editions of Windows before Windows 10 version 1607, the maximum length for a path is MAX_PATH, which is defined as 260 characters. In later versions of Windows, changing a registry key or using the Group Policy tool is required to remove the limit. source

The Windows API has many functions that also have Unicode versions to permit an extended-length path for a maximum total path length of 32,767 characters. This type of path is composed of components separated by backslashes, each up to the value returned in the lpMaximumComponentLength parameter of the GetVolumeInformation function (this value is commonly 255 characters). source

32,760 Unicode characters with each path component no more than 255 characters
source


Hi @AlanG I believe that Explorer is imposing smaller than max values for “our protection” :grinning:, as I tried what you did in the temp folder and while mine got cut off at 240 chars as well, 236 for the name plus 4 for the .txt I was able to get longer file names with some trickery.

I was able to use longer filenames getting up to the full word identify. Here is how.

I created a new file in explorer and tried to name it:

inter-individual differences in the electrophysiological characteristics of spindles eg density, amplitude, duration are highly correlated with Reasoning abilities ie fluid intelligence problem solving skills, the ability to employ logic, identify complex patterns.txt

When I pressed enter the file was truncated to

inter-individual differences in the electrophysiological characteristics of spindles eg density, amplitude, duration are highly correlated with Reasoning abilities ie fluid intelligence problem solving skills, the ability to employ log.txt

I created a second file with the full name (ending patterns.txt)
when I presses enter it gave me a warning that the file existed, indicating it was going to truncate at the same spot, and asked if I wanted to make a file with the same name but also including " (2)" at the end. I chose OK. This gave me a file 4 characters longer:

inter-individual differences in the electrophysiological characteristics of spindles eg density, amplitude, duration are highly correlated with Reasoning abilities ie fluid intelligence problem solving skills, the ability to employ log (2).txt

I then tried making a copy of that file and renaming it the full original name (ending patterns.txt) and it truncated it as

inter-individual differences in the electrophysiological characteristics of spindles eg density, amplitude, duration are highly correlated with Reasoning abilities ie fluid intelligence problem solving skills, the ability to employ logic, identify.txt

Trying to make another file with that same name didn’t give me an option for adding " (2)" it just told me it was a duplicate name and needed a different name.

Here are the names and lengths I was able to get in explorer:

Here are the sizes I was able to create in explorer:
c:\temp\inter-individual differences in the electrophysiological characteristics of spindles eg density, amplitude, duration are highly correlated with Reasoning abilities ie fluid intelligence problem solving skills, the ability to employ log.txt

Path length: 248
Filename length: 240

c:\temp\inter-individual differences in the electrophysiological characteristics of spindles eg density, amplitude, duration are highly correlated with Reasoning abilities ie fluid intelligence problem solving skills, the ability to employ log (2).txt

Path length: 252
Filename length: 244

c:\temp\inter-individual differences in the electrophysiological characteristics of spindles eg density, amplitude, duration are highly correlated with Reasoning abilities ie fluid intelligence problem solving skills, the ability to employ logic, identify.txt

Path length: 260
Filename length: 252

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.