Bugfix for windows, where a stat on a directory ending with

'/' does not work.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3524 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2009-05-19 12:09:53 +00:00
parent afdb422635
commit 224278556e

View File

@ -410,7 +410,12 @@ void FileManager::listFiles(std::set<std::string>& result, const std::string& di
{ {
result.clear(); result.clear();
std::string previous_cwd1 = m_file_system->getWorkingDirectory();
#ifdef WIN32
std::string path = is_full_path ? dir : m_root_dir+"/"+dir;
#else
std::string path = is_full_path ? dir + "/" : m_root_dir+"/"+dir + "/"; std::string path = is_full_path ? dir + "/" : m_root_dir+"/"+dir + "/";
#endif
//printf("******* Path : %s \n", path.c_str()); //printf("******* Path : %s \n", path.c_str());
struct stat mystat; struct stat mystat;