add trailing slash to paths

This commit is contained in:
dborth 2011-03-19 17:00:09 +00:00
parent 9fae5f0b42
commit 86b15fb903

View File

@ -610,6 +610,10 @@ ParseDirectory(bool waitParse, bool filter)
parseFilter = filter;
ResetBrowser(); // reset browser
// add trailing slash
if(browser.dir[strlen(browser.dir)-1] != '/')
strcat(browser.dir, "/");
// open the directory
while(dir == NULL && retry == 1)