--- Frodo4/Src/main_Be.h 2004/01/12 15:13:20 1.5 +++ Frodo4/Src/main_Be.h 2005/06/27 19:55:48 1.8 @@ -1,7 +1,7 @@ /* * main_Be.h - Main program, BeOS specific stuff * - * Frodo (C) 1994-1997,2002-2004 Christian Bauer + * Frodo (C) 1994-1997,2002-2005 Christian Bauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -357,9 +357,9 @@ public: MovePenTo(204, 40); DrawString("by Christian Bauer"); MovePenTo(204, 52); - DrawString(""); + DrawString(""); MovePenTo(204, 75); - DrawString(B_UTF8_COPYRIGHT " Copyright 1994-1997"); + DrawString(B_UTF8_COPYRIGHT " Copyright 1994-1997,2002-2005"); MovePenTo(204, 87); DrawString("Freely distributable."); } @@ -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); +}