add trailing slash to paths

This commit is contained in:
dborth 2011-03-19 17:00:02 +00:00
parent 478ecf5674
commit 6ff121a1fd

View File

@ -612,6 +612,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)
{ {