mirror of
https://github.com/ksherlock/mpw.git
synced 2025-01-08 22:30:25 +00:00
ignore directories
This commit is contained in:
parent
6d76fae173
commit
e1a3269cea
@ -661,7 +661,7 @@ bool file_exists(const std::string & name)
|
||||
{
|
||||
struct stat st;
|
||||
|
||||
return ::stat(name.c_str(), &st) == 0;
|
||||
return ::stat(name.c_str(), &st) == 0 && S_ISREG(st.st_mode);
|
||||
}
|
||||
|
||||
std::string find_exe(const std::string &name)
|
||||
|
Loading…
Reference in New Issue
Block a user