Sunday, March 18th 2018, 10:25pm UTC+1

You are not logged in.

  • Login
  • Register



Date of registration: Oct 17th 2013

Posts: 1


Thursday, October 24th 2013, 9:34am

what is the maximum path length in emFile?


I m testing the depth of sunbdirectories we can create. What is the limit on the file path length?

SEGGER - Marius

Super Moderator

Date of registration: Aug 10th 2011

Posts: 32


Monday, September 1st 2014, 11:40am


emFile does not explicitly limit the depth of a directory.

There is however one API function which temporarily stores the full path to a directory: FS_CreateDir().

It uses FS_MAX_PATH define (default: 260 bytes) to allocate the path buffer.

Also, when emFile is compiled with FS_MULTI_HANDLE_SAFE is set to 1

the full path to an opened file is stored internally. The maximum number of bytes in the

path can be specified using the FS_MAX_LEN_FULL_FILE_NAME define (default: 256 bytes).

Best regards,


Similar threads