(attr & FILE_ATTRIBUTE_DIRECTORY));
}
+bool IsExecutable(const std::string &path)
+{
+ DWORD type;
+ return GetBinaryType(path.c_str(), &type) != 0;
+}
+
bool IsDirDelimiter(char c)
{
return c == '/' || c == '\\';
return ((statbuf.st_mode & S_IFDIR) == S_IFDIR);
}
+bool IsExecutable(const std::string &path)
+{
+ return access(path.c_str(), X_OK) == 0;
+}
+
bool IsDirDelimiter(char c)
{
return c == '/';