--- Frodo4/Src/main_Be.h 2004/01/13 17:08:58 1.6 +++ Frodo4/Src/main_Be.h 2004/01/14 17:24:19 1.7 @@ -388,3 +388,14 @@ void Frodo::AboutRequested(void) { new AboutWindow(); } + + +/* + * Determine whether path name refers to a directory + */ + +bool IsDirectory(const char *path) +{ + struct stat st; + return stat(path.c_str(), &st) == 0 && S_ISDIR(st.st_mode); +}