Esp32S3 : Virtual FileSystem Max FileName

ThomasESP32
Posts: 229
Joined: Thu Jul 14, 2022 5:15 am

Esp32S3 : Virtual FileSystem Max FileName

Postby ThomasESP32 » Fri Nov 10, 2023 9:14 am

Good morning,

I am working on an Esp32S3.
I have defined a flash partition named Audio, where I put mp3 files automatically at compilation.

Using Virtual FileSystem, I am mounting a partition in order to access the mp3 files and I manage
to play them. Here everything is OK.

However, it seems that when the audio filename is more than 26 characters, I do not manage to open
the file anymore and I do not manage to play them...
Do you know if there is any restriction on the filename in order to work with them ?

Thank you for your help,
best regards,
Have a good day.

Thomas TRUILHE

username
Posts: 528
Joined: Thu May 03, 2018 1:18 pm

Re: Esp32S3 : Virtual FileSystem Max FileName

Postby username » Sat Nov 11, 2023 3:37 pm

There is a setting in menuconfig where you can adjust the filename length.

ThomasESP32
Posts: 229
Joined: Thu Jul 14, 2022 5:15 am

Re: Esp32S3 : Virtual FileSystem Max FileName

Postby ThomasESP32 » Fri Nov 17, 2023 9:13 am

Thank you for your answer, yes I have seen this configuration.

However, the name length in menu config is 255 caracters at the moment.

So I do not understand what happen.

Best regards,

username
Posts: 528
Joined: Thu May 03, 2018 1:18 pm

Re: Esp32S3 : Virtual FileSystem Max FileName

Postby username » Fri Nov 17, 2023 9:44 am

do you have " Long filename support " enabled ?

ThomasESP32
Posts: 229
Joined: Thu Jul 14, 2022 5:15 am

Re: Esp32S3 : Virtual FileSystem Max FileName

Postby ThomasESP32 » Fri Nov 17, 2023 12:28 pm

I have the longfilename support in Heap (Enabled)...
Do you have any idea ?

pacucha42
Posts: 31
Joined: Fri Mar 29, 2019 12:56 pm

Re: Esp32S3 : Virtual FileSystem Max FileName

Postby pacucha42 » Wed Nov 22, 2023 2:19 pm

Hi @ThomasESP32,
IDF Virtual FileSystem (VFS) has no limit on filename length, only on the FS path prefix (the part which identifies specific file-system or device with FS-like interface, eg UART. The limit is hardcoded as 15 chars, see https://docs.espressif.com/projects/esp ... html#paths).

The actual maximum of file-system path length is given by specific FS installed, for instance FatFS limits the length to 255 characters, once you enable LFN (long filenames) in the config. See https://docs.espressif.com/projects/esp ... -filenames

Who is online

Users browsing this forum: Bing [Bot], MicroController and 209 guests