Wednesday, October 18th 2017, 7:39am UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Suman

Beginner

Date of registration: Oct 17th 2013

Posts: 1

1

Thursday, October 24th 2013, 9:34am

what is the maximum path length in emFile?

Hi,

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: 29

2

Monday, September 1st 2014, 11:40am

Hello,



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,

Marius

Similar threads