sd card module limited filesname length [solved]

Hello

i have an sd card module wich i want to use with arduino, I used the sd card library (ver 1.2.2 by sparkfun) found in arduino libraries, and i have a small problem with it, wich is that the length of the filename written in the sd card is limited to 13 (i tried changing the filename length, and when the filename length bypasses 13 i get the error: "Could not create file"),*
in the library path, i found 2 files:
sd.ccp
sd.h

in the "sd.cpp" file, that's what i found:

#define MAX_COMPONENT_LEN 13 // What is max length?
#define PATH_COMPONENT_BUFFER_LEN MAX_COMPONENT_LEN+1

i changed 13 to 40

and in the "sd.h" i found:
char _name[13]; // our name

and i also changed 13 to 40

but the problem still exists.
i hope that you can help.

i hope that you can help.

The SD library handles files in the 8.3 format. 8 + 1 + 3 + 1 = 13. Changing the array size to 40 or 400 won't change that fact that 8 + 1 + 3 + 1 is 13.

PaulS:
The SD library handles files in the 8.3 format. 8 + 1 + 3 + 1 = 13. Changing the array size to 40 or 400 won't change that fact that 8 + 1 + 3 + 1 is 13.

and i can i modify the library so as it can supports ling files names? or i should use another library?

ardv:
and i can i modify the library so as it can supports ling files names? or i should use another library?

Yes and yes.