A first try to remove the "//".

On linux it removes the majority of them except the ones before
_main.cfg (sadly probably the important ones). I'm on it too.

It play a little with AMIGAOS, but normally keep the previous behavior
(what's ":" in this OS?)
This commit is contained in:
Ali El Gariani 2007-05-24 20:27:25 +00:00
parent 98cf72f2e0
commit b8da689582

View file

@ -450,16 +450,15 @@ void get_files_in_dir(const std::string& directory,
/* generic Unix */
char *basename = entry->d_name;
#endif /* !APPLE */
#ifndef __AMIGAOS4__
const std::string fullname((directory + "/") + basename);
#else
std::string fullname;
if (directory.empty() || (directory[directory.size()-1]==':' ||
directory[directory.size()-1] == '/'))
if (directory.empty() || directory[directory.size()-1] == '/'
#ifdef __AMIGAOS4__
|| (directory[directory.size()-1]==':')
#endif /* __AMIGAOS4__ */
)
fullname = directory + basename;
else
fullname = (directory + "/") + basename;
#endif /* __AMIGAOS4__ */
if (::stat(fullname.c_str(), &st) != -1) {
if (S_ISREG(st.st_mode)) {