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

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