/[enigma]/enigma/src/system_unix.cc
ViewVC logotype

Diff of /enigma/src/system_unix.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch 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    }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26