# | 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 | + | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |