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

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