Function normalizePath

Synopsis

#include <include/fsutil.hpp>

void normalizePath(wstring &path)

Description

No description yet.

Source

Lines 44-48 in src/fsutil.cpp. Line 37 in include/fsutil.hpp.

void fsutil::normalizePath( wstring& path ) { //this assumes that the passed path is not a file path!
    if ( !path.empty() && path.back() != L'\\' && path.back() != L'/' ) {
        path.append( L"\\" );
    }
}





Add Discussion as Guest

Log in