Home » U++ Library support » FileSel&FileList, Path » A little improvement to AppendFileName
A little improvement to AppendFileName [message #23320] |
Fri, 09 October 2009 08:47  |
 |
koldo
Messages: 3432 Registered: August 2008
|
Senior Veteran |
|
|
Hello Mirek
Just a proposal. The addition is under the ___:
String AppendFileName(const String& path, const char *fileName) {
String result = path; __________NEW__________
if(result.GetLength() && *result.Last() != DIR_SEP && *fileName != DIR_SEP)
result += DIR_SEP;
result += fileName;
return result;
}
Best regards
Koldo
Best regards
IƱaki
|
|
|
Goto Forum:
Current Time: Sat Apr 26 16:01:24 CEST 2025
Total time taken to generate the page: 0.01126 seconds
|