Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 3354
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: Thu Mar 28 10:27:08 CET 2024

Total time taken to generate the page: 0.00866 seconds