Parent Directory | Revision Log | Patch
revision 1.1 by dheck, Sun Jan 5 19:56:38 2003 UTC | revision 1.2 by mhawlisch, Wed Feb 19 14:04:03 2003 UTC | |
---|---|---|
# | Line 44 sysdep::FileExists(const std::string &fn | Line 44 sysdep::FileExists(const std::string &fn |
44 | struct stat s; | struct stat s; |
45 | return (stat(fname.c_str(), &s)==0 && S_ISREG(s.st_mode)); | return (stat(fname.c_str(), &s)==0 && S_ISREG(s.st_mode)); |
46 | } | } |
47 | ||
48 | bool | |
49 | sysdep::FolderExists(const std::string &fname) | |
50 | { | |
51 | struct stat s; | |
52 | return (stat(fname.c_str(), &s)==0 && S_ISDIR(s.st_mode)); | |
53 | } |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |