U++ framework
Do not panic. Ask here before giving up.

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 Go to previous message
koldo is currently offline  koldo
Messages: 3458
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
 
Read Message
Read Message
Read Message
Previous Topic: FindFile.IsSymLink() broken
Next Topic: Codepage problem in FileSel directory selection droplist
Goto Forum:
  


Current Time: Tue Apr 28 13:53:56 GMT+2 2026

Total time taken to generate the page: 0.01108 seconds