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:
parent
afdb422635
commit
224278556e
@ -410,7 +410,12 @@ void FileManager::listFiles(std::set<std::string>& result, const std::string& di
|
||||
{
|
||||
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 + "/";
|
||||
#endif
|
||||
//printf("******* Path : %s \n", path.c_str());
|
||||
|
||||
struct stat mystat;
|
||||
|
Loading…
Reference in New Issue
Block a user