Page 1 of 1

Esp32S3 : Virtual FileSystem Max FileName

Posted: Fri Nov 10, 2023 9:14 am
by ThomasESP32
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

Re: Esp32S3 : Virtual FileSystem Max FileName

Posted: Sat Nov 11, 2023 3:37 pm
by username
There is a setting in menuconfig where you can adjust the filename length.

Re: Esp32S3 : Virtual FileSystem Max FileName

Posted: Fri Nov 17, 2023 9:13 am
by ThomasESP32
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,

Re: Esp32S3 : Virtual FileSystem Max FileName

Posted: Fri Nov 17, 2023 9:44 am
by username
do you have " Long filename support " enabled ?

Re: Esp32S3 : Virtual FileSystem Max FileName

Posted: Fri Nov 17, 2023 12:28 pm
by ThomasESP32
I have the longfilename support in Heap (Enabled)...
Do you have any idea ?

Re: Esp32S3 : Virtual FileSystem Max FileName

Posted: Wed Nov 22, 2023 2:19 pm
by pacucha42
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