ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/Frodo4/Src/main_x.h
(Generate patch)

Comparing Frodo4/Src/main_x.h (file contents):
Revision 1.5 by cebix, 2004-01-13T19:52:49Z vs.
Revision 1.6 by cebix, 2004-01-14T17:24:19Z

# Line 119 | Line 119 | Prefs *Frodo::reload_prefs(void)
119          newprefs.Load(prefs_path);
120          return &newprefs;
121   }
122 +
123 +
124 + /*
125 + *  Determine whether path name refers to a directory
126 + */
127 +
128 + bool IsDirectory(const char *path)
129 + {
130 +        struct stat st;
131 +        return stat(path, &st) == 0 && S_ISDIR(st.st_mode);
132 + }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines